2019-02-04 00:29:13 +01:00
includes:
2019-02-04 02:14:03 +01:00
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
2019-02-04 02:08:59 +01:00
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
2018-08-22 18:30:48 +02:00
parameters:
fileExtensions:
- php
- phpt
ignoreErrors:
2021-02-06 12:51:56 +01:00
-
2023-02-18 17:38:47 +01:00
# Why: Properties are read dynamically during message construction
message: '/Property Respect\\Validation\\Rules\\[a-zA-Z0-9\\_]+::\$[a-zA-Z0-9\\_]+ is never read, only written\./'
2021-02-06 12:51:56 +01:00
2020-07-22 14:02:39 +02:00
-
2023-02-18 17:38:47 +01:00
# Why: SimpleXMLElement is weird and doesn't implement anything ArrayAccess-like
2020-07-22 14:02:39 +02:00
message: '/Instanceof between mixed and SimpleXMLElement will always evaluate to false\./'
path: library/Rules/ArrayVal.php
2021-02-06 12:51:56 +01:00
2020-07-22 14:02:39 +02:00
-
2023-02-18 17:38:47 +01:00
# Why: This error is intentional, so PHPunit can test an invalid __callStatic call
2020-07-22 14:02:39 +02:00
message: '/Call to an undefined static method Respect\\Validation\\Validator::iDoNotExistSoIShouldThrowException/'
path: tests/unit/ValidatorTest.php
2020-10-04 13:04:20 +02:00
-
2023-02-18 17:38:47 +01:00
# Why: StaticValidator is a stub interface that types __callStatic
2020-10-04 13:04:20 +02:00
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
2023-02-18 17:38:47 +01:00
level: 8
2018-08-22 18:30:48 +02:00
paths:
- library/
- tests/