From 48b98dacf97886a013b2d563c4f2e025722c1146 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sun, 8 Dec 2024 10:51:26 +0100 Subject: [PATCH] Revert "Ignore PHPStan errors in test cases for errors" as these errors are not reported on PHPStan Rule Level 4 This reverts commit 60fe3d7d7a09a953b005e9e6f402ef62f8a07548. --- tests/tests/Target/MapperTest.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/tests/Target/MapperTest.php b/tests/tests/Target/MapperTest.php index 68da4277..ed6028de 100644 --- a/tests/tests/Target/MapperTest.php +++ b/tests/tests/Target/MapperTest.php @@ -122,7 +122,6 @@ public static function invalidProvider(): array 'Class DoesNotExist is not a valid target for code coverage', TargetCollection::fromArray( [ - /** @phpstan-ignore argument.type */ Target::forClass('DoesNotExist'), ], ), @@ -131,7 +130,6 @@ public static function invalidProvider(): array 'Classes that extend class DoesNotExist is not a valid target for code coverage', TargetCollection::fromArray( [ - /** @phpstan-ignore argument.type */ Target::forClassesThatExtendClass('DoesNotExist'), ], ), @@ -140,7 +138,6 @@ public static function invalidProvider(): array 'Classes that implement interface DoesNotExist is not a valid target for code coverage', TargetCollection::fromArray( [ - /** @phpstan-ignore argument.type */ Target::forClassesThatImplementInterface('DoesNotExist'), ], ), @@ -157,7 +154,6 @@ public static function invalidProvider(): array 'Method DoesNotExist::doesNotExist is not a valid target for code coverage', TargetCollection::fromArray( [ - /** @phpstan-ignore argument.type */ Target::forMethod('DoesNotExist', 'doesNotExist'), ], ),