Skip to content

Commit

Permalink
Ignore PHPStan errors
Browse files Browse the repository at this point in the history
I want to get the build green. Currently, PHPStan is complaining about a
couple of issues that are not so critical. It's especially concerning
that strict_types must be the very first statement on PHPT files, but
that's fine since PHPUnit parses its content.

Signed-off-by: Henrique Moody <[email protected]>
  • Loading branch information
henriquemoody committed Jan 27, 2024
1 parent 177657d commit bd953f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ parameters:
# Why: StaticValidator is a stub interface that types __callStatic
message: '/Call to static method PHPUnit\\Framework\\Assert::assertSame\(\) with Respect\\Validation\\Validator and Respect\\Validation\\ChainedValidator will always evaluate to false./'
path: tests/unit/ValidatorTest.php

-
# Why: I don't want to make changes to the code just to make phpstan happy
message: '/Parameter #2 \$values of function vsprintf expects array<bool\|float\|int\|string\|null>, array<string, array<bool\|int\|string>\|bool\|float\|int\|string> given./'
path: library/Rules/AbstractAge.php
level: 8
paths:
- library/
- tests/
excludePaths:
- tests/integration/

0 comments on commit bd953f9

Please sign in to comment.