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.
This commit is contained in:
Paweł Słowik
2021-05-24 22:14:18 +02:00
parent aeb5e4d297
commit 63231900f9
+9
View File
@@ -27,3 +27,12 @@ parameters:
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