From a17744e4ab954e6c716f395c48d0a5cd30512325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Wed, 23 Oct 2024 14:18:50 +0200 Subject: [PATCH] Remove phpstan-suppress annotations It makes no sense to use those with Psalm rules. --- .../Mapping/AbstractClassMetadataFactoryTest.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php b/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php index 862e9475..09240562 100644 --- a/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php +++ b/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php @@ -59,10 +59,6 @@ public function testItThrowsWhenAttemptingToGetMetadataForShortAlias(): void { $cmf = $this->getMockForAbstractClass(AbstractClassMetadataFactory::class); $this->expectException(MappingException::class); - /** - * @phpstan-suppress ArgumentTypeCoercion - * @phpstan-suppress UndefinedClass - */ // @phpstan-ignore-next-line $cmf->getMetadataFor('App:Test'); } @@ -71,10 +67,6 @@ public function testItThrowsWhenAttemptingToCheckTransientForShortAlias(): void { $cmf = $this->getMockForAbstractClass(AbstractClassMetadataFactory::class); $this->expectException(MappingException::class); - /** - * @phpstan-suppress ArgumentTypeCoercion - * @phpstan-suppress UndefinedClass - */ // @phpstan-ignore-next-line $cmf->isTransient('App:Test'); } @@ -89,7 +81,6 @@ public function testItGetsTheSameMetadataForBackslashedClassName(): void self::createStub(ClassMetadata::class) ); - /** @phpstan-suppress ArgumentTypeCoercion */ self::assertSame($cmf->getMetadataFor(SomeOtherEntity::class), $cmf->getMetadataFor('\\' . SomeOtherEntity::class)); } }