Skip to content

Commit

Permalink
PHPStan: ignore false positive errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Oct 26, 2023
1 parent e90ba72 commit 548e037
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,15 @@ parameters:
count: 1
path: tests/Unit/V1/ResourceNullTest.php
# We are providing an invalid parameter to test the deprecation message

-
message: "#^Parameter \\#1 \\$key of method Art4\\\\JsonApiClient\\\\Tests\\\\Fixtures\\\\AccessableTraitMock\\:\\:get\\(\\) expects Art4\\\\JsonApiClient\\\\Helper\\\\AccessKey\\|int\\|string, mixed given\\.$#"
count: 1
path: tests/Unit/Helper/AccessableTraitTest.php
# We are providing an invalid parameter to test the deprecation message

-
message: "#^Parameter \\#1 \\$key of method Art4\\\\JsonApiClient\\\\Tests\\\\Fixtures\\\\AccessableTraitMock\\:\\:has\\(\\) expects Art4\\\\JsonApiClient\\\\Helper\\\\AccessKey\\|int\\|string, mixed given\\.$#"
count: 1
path: tests/Unit/Helper/AccessableTraitTest.php
# We are providing an invalid parameter to test the deprecation message

0 comments on commit 548e037

Please sign in to comment.