respect-validation/phpstan.neon.dist
Henrique Moody 140bd36aa3
Rename library/ to src/
We've always considered renaming this directory, as it's not a common
standard to name `library` the directory where the source code of a
library it. Having it as `src/` is a common pattern we find in several
PHP libraries these days.

Acked-by: Alexandre Gomes Gaigalas <alganet@gmail.com>
2026-01-22 13:13:15 +01:00

28 lines
1.2 KiB
Text

parameters:
fileExtensions:
- php
- phpt
ignoreErrors:
-
# Why: SimpleXMLElement is weird and doesn't implement anything ArrayAccess-like
message: '/Instanceof between mixed and SimpleXMLElement will always evaluate to false\./'
path: src/Validators/ArrayVal.php
- message: '/Call to an undefined method .+::expectException\(\)/'
path: tests/Pest.php
- message: '/Undefined variable: \$this/'
path: tests/feature/Validators/SizeTest.php
- message: '/Undefined variable: \$this/'
path: tests/Pest.php
- message: '/Method .+\\TestingHandler::handle\(\) never returns null so it can be removed from the return type./'
path: tests/src/Message/TestingHandler.php
- message: '/Access to an undefined property PHPUnit\\Framework\\TestCase/'
path: tests/feature/Validators/SizeTest.php
- message: '/Property Respect\\Validation\\Test\\Stubs\\.+::\$[a-zA-Z]+ is never read, only written./'
path: tests/src/Stubs
- message: '/Call to an undefined method Pest\\PendingCalls\\TestCall|Pest\\Support\\HigherOrderTapProxy::with\(\)./'
path: tests/feature/SerializableTest.php
level: 8
treatPhpDocTypesAsCertain: false
paths:
- src/
- tests/