Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Fix the bug I created, thank you @phpstan !
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Mar 9, 2023
1 parent c0c422a commit 6ecc131
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,6 @@ parameters:
count: 1
path: src/Request/BaseRequest.php

-
message: "#^Property LaravelFCM\\\\Request\\\\BaseRequest\\:\\:\\$senderId \\(string\\) does not accept string\\|null\\.$#"
count: 1
path: src/Request/BaseRequest.php

-
message: "#^Property LaravelFCM\\\\Request\\\\BaseRequest\\:\\:\\$serverKey \\(string\\) does not accept string\\|null\\.$#"
count: 1
path: src/Request/BaseRequest.php

-
message: "#^Cannot call method get\\(\\) on mixed\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion src/Request/BaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class BaseRequest
public function __construct(string $serverKey = null, string $senderId = null)
{
// They may have been already filled
if ($this->serverKey === null || $this->senderId === null) {
if ($serverKey === null || $senderId === null) {
$config = app('config')->get('fcm.http', []);
$this->serverKey = $config['server_key'];
$this->senderId = $config['sender_id'];
Expand Down

0 comments on commit 6ecc131

Please sign in to comment.