Skip to content

Commit a5a6cc6

Browse files
authored
Remove fragile assertions (#10239)
RuntimePublicReflectionProperty has been deprecated in favor of RuntimeReflectionProperty. Let us use a more robust assertion.
1 parent fc3201b commit a5a6cc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
use Doctrine\ORM\Mapping\MappingException;
2020
use Doctrine\ORM\Mapping\ReflectionEmbeddedProperty;
2121
use Doctrine\ORM\Query\QueryException;
22-
use Doctrine\Persistence\Reflection\RuntimePublicReflectionProperty;
2322
use Doctrine\Tests\OrmFunctionalTestCase;
23+
use ReflectionProperty;
2424

2525
use function class_exists;
2626
use function sprintf;
@@ -53,7 +53,7 @@ public function testMetadataHasReflectionEmbeddablesAccessible(): void
5353
);
5454
} else {
5555
self::assertInstanceOf(
56-
RuntimePublicReflectionProperty::class,
56+
ReflectionProperty::class,
5757
$classMetadata->getReflectionProperty('address')
5858
);
5959
}

0 commit comments

Comments
 (0)