From ac334c891d58ff867994b388d6d410b0c5de3f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 19 Nov 2022 15:25:26 +0100 Subject: [PATCH] Remove fragile assertions RuntimePublicReflectionProperty has been deprecated in favor of RuntimeReflectionProperty. Let us use a more robust assertion. --- tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php b/tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php index ea3682f1d97..a4b40d1e35e 100644 --- a/tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php @@ -19,8 +19,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 ReflectionProperty; use function class_exists; use function sprintf; @@ -53,7 +53,7 @@ public function testMetadataHasReflectionEmbeddablesAccessible(): void ); } else { self::assertInstanceOf( - RuntimePublicReflectionProperty::class, + ReflectionProperty::class, $classMetadata->getReflectionProperty('address') ); }