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.
This commit is contained in:
Paweł Słowik
2021-05-24 22:36:18 +02:00
parent 19291c6491
commit c02c911ea6
+1
View File
@@ -31,6 +31,7 @@ parameters:
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: