mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
b4dff559ab
* 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()`
33 lines
1.2 KiB
Plaintext
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
|