Skip to content

Commit

Permalink
Remove phpstan-suppress annotations
Browse files Browse the repository at this point in the history
It makes no sense to use those with Psalm rules.
  • Loading branch information
greg0ire committed Oct 23, 2024
1 parent dd6bbae commit a17744e
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand All @@ -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');
}
Expand All @@ -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));
}
}
Expand Down

0 comments on commit a17744e

Please sign in to comment.