respect-validation/phpstan.neon.dist
Henrique Moody 8332d28acc
Do not overwrite existing names
This commit addresses the skipped tests by modifying certain core
concepts in the library. The way names work has always been somewhat
confusing, even to me. I’ve established that existing names will never
be overwritten, and if a path is already defined, we will change the
name to also include the path.

I’m not very happy with how I’m solving this problem, because the
`FirstResultStringFormatter` is changing some behaviour in the results
that seems to be something that should always happen before. But, for
the moment, I will keep it as is.
2025-12-26 14:48:23 +01:00

28 lines
1.3 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: library/Rules/ArrayVal.php
- message: '/Call to an undefined method .+::expectException\(\)/'
path: tests/Pest.php
- message: '/Undefined variable: \$this/'
path: tests/feature/Rules/SizeTest.php
- message: '/Undefined variable: \$this/'
path: tests/Pest.php
- message: '/Method .+\\TestingStringifier::stringify\(\) never returns null so it can be removed from the return type./'
path: tests/library/Message/TestingStringifier.php
- message: '/Parameter #1 \$messages of class .+\\ArrayTranslator constructor expects array<string, string>, array<string, int> given./'
path: tests/unit/Message/Translator/ArrayTranslatorTest.php
- message: '/Access to an undefined property PHPUnit\\Framework\\TestCase/'
path: tests/feature/Rules/SizeTest.php
- message: '/Property Respect\\Validation\\Test\\Stubs\\.+::\$[a-zA-Z]+ is never read, only written./'
path: tests/library/Stubs
level: 8
treatPhpDocTypesAsCertain: false
paths:
- library/
- tests/