From c02c911ea625990ef15e4919ab75f42e82b1be4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20S=C5=82owik?= Date: Mon, 24 May 2021 22:36:18 +0200 Subject: [PATCH] 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. --- tests/phpstan-tests.neon | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpstan-tests.neon b/tests/phpstan-tests.neon index 76b6c78..06d411d 100644 --- a/tests/phpstan-tests.neon +++ b/tests/phpstan-tests.neon @@ -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: