Skip to content

Commit

Permalink
QA: update phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Nov 28, 2023
1 parent a8a269d commit a91a1f6
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions phpstan.neon
Expand Up @@ -16,3 +16,57 @@ parameters:
- .docs

ignoreErrors:
-
message: "#^Method Contributte\\\\Elastica\\\\Client\\:\\:request\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
count: 1
path: src/Client.php

-
message: "#^Method Contributte\\\\Elastica\\\\Client\\:\\:request\\(\\) has parameter \\$query with no value type specified in iterable type array\\.$#"
count: 1
path: src/Client.php

-
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
count: 1
path: src/Diagnostics/Panel.php

-
message: "#^Cannot access an offset on mixed\\.$#"
count: 2
path: src/Diagnostics/Panel.php

-
message: "#^Casting to string something that's already string\\.$#"
count: 1
path: src/Diagnostics/Panel.php

-
message: "#^Only booleans are allowed in a negated boolean, array given\\.$#"
count: 1
path: src/Diagnostics/Panel.php

-
message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#"
count: 1
path: src/Diagnostics/Panel.php

-
message: "#^Only booleans are allowed in an if condition, Elastica\\\\Response\\|null given\\.$#"
count: 1
path: src/Diagnostics/Panel.php

-
message: "#^Only booleans are allowed in an if condition, int given\\.$#"
count: 1
path: src/Diagnostics/Panel.php

-
message: "#^Return type \\(string\\|null\\) of method Contributte\\\\Elastica\\\\Diagnostics\\\\Panel\\:\\:getPanel\\(\\) should be covariant with return type \\(string\\) of method Tracy\\\\IBarPanel\\:\\:getPanel\\(\\)$#"
count: 1
path: src/Diagnostics/Panel.php

-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Diagnostics/Panel.php

0 comments on commit a91a1f6

Please sign in to comment.