mirror of
https://github.com/doctrine/persistence.git
synced 2026-03-23 22:42:11 +01:00
Remove phpstan-suppress annotations
It makes no sense to use those with Psalm rules.
This commit is contained in:
@@ -59,10 +59,6 @@ final class AbstractClassMetadataFactoryTest extends DoctrineTestCase
|
||||
{
|
||||
$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 @@ final class AbstractClassMetadataFactoryTest extends DoctrineTestCase
|
||||
{
|
||||
$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 @@ final class AbstractClassMetadataFactoryTest extends DoctrineTestCase
|
||||
self::createStub(ClassMetadata::class)
|
||||
);
|
||||
|
||||
/** @phpstan-suppress ArgumentTypeCoercion */
|
||||
self::assertSame($cmf->getMetadataFor(SomeOtherEntity::class), $cmf->getMetadataFor('\\' . SomeOtherEntity::class));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user