Skip to content

Commit

Permalink
Fix Pint & PHPStan Findings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed Mar 10, 2024
1 parent 3dd216c commit 4bb1acb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
parameters:
ignoreErrors:
-
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
count: 1
path: src/Console/CreateWebhook.php

-
message: "#^Parameter \\#2 \\$array of function preg_grep expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: src/Console/CreateWebhook.php

-
message: "#^Cannot call method assertExitCode\\(\\) on Illuminate\\\\Testing\\\\PendingCommand\\|int\\.$#"
count: 12
path: tests/ConsoleTest.php

-
message: "#^Cannot call method expectsQuestion\\(\\) on Illuminate\\\\Testing\\\\PendingCommand\\|int\\.$#"
count: 7
path: tests/ConsoleTest.php
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
includes:
- ./vendor/larastan/larastan/extension.neon
- phpstan-baseline.neon

parameters:
paths:
Expand Down
3 changes: 3 additions & 0 deletions tests/ConsoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use MarcReichel\IGDBLaravel\Exceptions\InvalidWebhookMethodException;
use Symfony\Component\Console\Command\Command;

/**
* @internal
*/
class ConsoleTest extends TestCase
{
public function testItShouldShowWarningForEmptyWebhooks(): void
Expand Down

0 comments on commit 4bb1acb

Please sign in to comment.