Skip to content

Commit

Permalink
ignore PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
othillo committed Apr 23, 2022
1 parent cead4a2 commit ff4530a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$array of function array_intersect expects array, mixed given\\.$#"
count: 1
path: lib/Qandidate/Toggle/Operator/HasIntersection.php

-
message: "#^Parameter \\#1 \\$pattern of function preg_match expects string, mixed given\\.$#"
count: 1
path: lib/Qandidate/Toggle/Operator/MatchesRegex.php

-
message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#"
count: 1
path: lib/Qandidate/Toggle/Operator/MatchesRegex.php

-
message: "#^Cannot cast mixed to int\\.$#"
count: 1
path: lib/Qandidate/Toggle/Operator/Percentage.php

-
message: "#^Cannot call method getName\\(\\) on mixed\\.$#"
count: 1
path: lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php

-
message: "#^Method Qandidate\\\\Toggle\\\\ToggleCollection\\\\PredisCollection\\:\\:all\\(\\) should return array\\<Qandidate\\\\Toggle\\\\Toggle\\> but returns array\\<int\\|string, mixed\\>\\.$#"
count: 1
path: lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php

-
message: "#^Method Qandidate\\\\Toggle\\\\ToggleCollection\\\\PredisCollection\\:\\:get\\(\\) should return Qandidate\\\\Toggle\\\\Toggle\\|null but returns mixed\\.$#"
count: 1
path: lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php

2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
includes:
- phpstan-baseline.neon
parameters:
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false

0 comments on commit ff4530a

Please sign in to comment.