diff --git a/composer.json b/composer.json index e6525f34d5a..b53eb45168f 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "doctrine/inflector": "^1.4 || ^2.0", "doctrine/instantiator": "^1.3", "doctrine/lexer": "^1.2.3", - "doctrine/persistence": "^2.4 || ^3", + "doctrine/persistence": "^2.4 || ^3.1", "psr/cache": "^1 || ^2 || ^3", "symfony/console": "^3.0 || ^4.0 || ^5.0 || ^6.0", "symfony/polyfill-php72": "^1.23", diff --git a/tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php b/tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php index ea3682f1d97..621edec4c6a 100644 --- a/tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php @@ -5,7 +5,6 @@ namespace Doctrine\Tests\ORM\Functional; use DateTime; -use Doctrine\Common\Reflection\RuntimePublicReflectionProperty as CommonRuntimePublicReflectionProperty; use Doctrine\ORM\Mapping\Column; use Doctrine\ORM\Mapping\DiscriminatorColumn; use Doctrine\ORM\Mapping\DiscriminatorMap; @@ -19,10 +18,8 @@ use Doctrine\ORM\Mapping\MappingException; use Doctrine\ORM\Mapping\ReflectionEmbeddedProperty; use Doctrine\ORM\Query\QueryException; -use Doctrine\Persistence\Reflection\RuntimePublicReflectionProperty; use Doctrine\Tests\OrmFunctionalTestCase; -use function class_exists; use function sprintf; /** @group DDC-93 */ @@ -46,18 +43,6 @@ public function testMetadataHasReflectionEmbeddablesAccessible(): void { $classMetadata = $this->_em->getClassMetadata(DDC93Person::class); - if (class_exists(CommonRuntimePublicReflectionProperty::class)) { - self::assertInstanceOf( - CommonRuntimePublicReflectionProperty::class, - $classMetadata->getReflectionProperty('address') - ); - } else { - self::assertInstanceOf( - RuntimePublicReflectionProperty::class, - $classMetadata->getReflectionProperty('address') - ); - } - self::assertInstanceOf(ReflectionEmbeddedProperty::class, $classMetadata->getReflectionProperty('address.street')); }