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

Commit 6ecc131

Browse files
committed
Fix the bug I created, thank you @phpstan !
1 parent c0c422a commit 6ecc131

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

phpstan-baseline.neon

-10
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,6 @@ parameters:
5555
count: 1
5656
path: src/Request/BaseRequest.php
5757

58-
-
59-
message: "#^Property LaravelFCM\\\\Request\\\\BaseRequest\\:\\:\\$senderId \\(string\\) does not accept string\\|null\\.$#"
60-
count: 1
61-
path: src/Request/BaseRequest.php
62-
63-
-
64-
message: "#^Property LaravelFCM\\\\Request\\\\BaseRequest\\:\\:\\$serverKey \\(string\\) does not accept string\\|null\\.$#"
65-
count: 1
66-
path: src/Request/BaseRequest.php
67-
6858
-
6959
message: "#^Cannot call method get\\(\\) on mixed\\.$#"
7060
count: 1

src/Request/BaseRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class BaseRequest
3434
public function __construct(string $serverKey = null, string $senderId = null)
3535
{
3636
// They may have been already filled
37-
if ($this->serverKey === null || $this->senderId === null) {
37+
if ($serverKey === null || $senderId === null) {
3838
$config = app('config')->get('fcm.http', []);
3939
$this->serverKey = $config['server_key'];
4040
$this->senderId = $config['sender_id'];

0 commit comments

Comments
 (0)