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

Call to static method Ramsey\Uuid\Uuid::uuid3() on a separate line has
no effect.

can be safely ignored here. The lack of effect is intentional in
benchmarks.
2021-05-24 22:36:18 +02:00

44 lines
1.5 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 static method Ramsey\\\\Uuid\\\\.+ on a separate line has no effect\\.$#"
paths:
- *Test.php
- benchmark/*Bench.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