Files
php-uuid/tests/phpstan-tests.neon
T
Paweł Słowik 63231900f9 Ignore some PHPStan "no effect" errors in tests
PHPStan errors like these:

Call to method Ramsey\Uuid\Builder\FallbackBuilder::build() on a separate line
has no effect.

can be safely ignored here. The lack of effect is intentional as we are testing
exceptions.
2021-05-24 22:31:30 +02:00

39 lines
1.3 KiB
Plaintext

parameters:
tmpDir: ../build/cache/phpstan
level: max
paths:
- .
bootstrapFiles:
- ./phpstan-bootstrap.php
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false
excludes_analyse:
- ./ExpectedBehaviorTest.php
- ./phpstan-bootstrap.php
ignoreErrors:
-
message: "#^Function uuid_create\\(\\) has no return typehint specified\\.$#"
count: 1
path: phpstan-bootstrap.php
-
message: "#^Function uuid_create\\(\\) has parameter \\$uuid_type with no typehint specified\\.$#"
count: 1
path: phpstan-bootstrap.php
-
message: "#^Function uuid_parse\\(\\) has no return typehint specified\\.$#"
count: 1
path: phpstan-bootstrap.php
-
message: "#^Function uuid_parse\\(\\) has parameter \\$uuid with no typehint specified\\.$#"
count: 1
path: phpstan-bootstrap.php
-
message: "#^Call to method Ramsey\\\\Uuid\\\\.+ on a separate line has no effect\\.$#"
paths:
- Builder/*Test.php
- Converter/*Test.php
- Generator/*Test.php
- Guid/*Test.php
- Nonstandard/*Test.php
- Rfc4122/*Test.php