Files
php-uuid/phpstan-tests.neon
T
George Steel b4dff559ab Assert non-empty-string when UUID is valid (#410)
* Assert, for psalm, the string is non-empty if validation passes
* Adds a test for SA asserting that valid string are also non-empty
* Suppress PHPStan error for unsupported conditional type assertion
* Check SA tools don't complain about non-empty-string as input parameter to `Uuid::isValid()`
2022-08-09 10:04:36 -05:00

33 lines
1.2 KiB
Plaintext

parameters:
tmpDir: ./build/cache/phpstan
level: max
paths:
- ./tests
bootstrapFiles:
- ./tests/static-analysis/stubs.php
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false
excludePaths:
analyse:
- ./tests/ExpectedBehaviorTest.php
- ./tests/static-analysis/stubs.php
ignoreErrors:
-
message: "#^Call to static method Ramsey\\\\Uuid\\\\.+ on a separate line has no effect\\.$#"
paths:
- ./tests/*Test.php
- ./tests/benchmark/*Bench.php
-
message: "#^Call to method Ramsey\\\\Uuid\\\\.+ on a separate line has no effect\\.$#"
paths:
- ./tests/Builder/*Test.php
- ./tests/Converter/*Test.php
- ./tests/Generator/*Test.php
- ./tests/Guid/*Test.php
- ./tests/Nonstandard/*Test.php
- ./tests/Rfc4122/*Test.php
-
message: "#^Method Ramsey\\\\Uuid\\\\.+ should return non-empty-string but returns string\\.$#"
paths:
- ./tests/static-analysis/ValidUuidIsNonEmpty.php