From 63231900f95e0b4e6c8956065dc5e8ad0e7caa9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20S=C5=82owik?= Date: Mon, 24 May 2021 22:14:18 +0200 Subject: [PATCH] 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. --- tests/phpstan-tests.neon | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/phpstan-tests.neon b/tests/phpstan-tests.neon index 1973ce3..d7d0cc7 100644 --- a/tests/phpstan-tests.neon +++ b/tests/phpstan-tests.neon @@ -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