Skip to content

Commit 547a10f

Browse files
Merge branch '7.2' into 7.3
* 7.2: Fix php.net links fix version number in deprecation [DoctrineBridge] Restore compatibility with Doctrine ODM by validating $class object type chore: Increase minimum version of type-info component [FrameworkBundle] Add functional tests for the `ContainerLintCommand` command Fix precision loss when rounding large integers in `NumberToLocalizedStringTransformer`
2 parents 6c0acb2 + 64aaddf commit 547a10f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Validator/Constraints/UniqueEntityValidator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Validator\Constraints;
1313

14-
use Doctrine\ORM\Mapping\ClassMetadata as OrmClassMetadata;
1514
use Doctrine\ORM\Mapping\MappingException as ORMMappingException;
1615
use Doctrine\Persistence\ManagerRegistry;
1716
use Doctrine\Persistence\Mapping\ClassMetadata;
@@ -294,7 +293,7 @@ private function getFieldValues(mixed $object, ClassMetadata $class, array $fiel
294293
throw new ConstraintDefinitionException(\sprintf('The field "%s" is not a property of class "%s".', $fieldName, $objectClass));
295294
}
296295

297-
if ($isValueEntity && $object instanceof ($class->getName()) && property_exists(OrmClassMetadata::class, 'propertyAccessors')) {
296+
if ($isValueEntity && $object instanceof ($class->getName()) && property_exists($class, 'propertyAccessors')) {
298297
$fieldValues[$entityFieldName] = $class->propertyAccessors[$fieldName]->getValue($object);
299298
} elseif ($isValueEntity && $object instanceof ($class->getName())) {
300299
$fieldValues[$entityFieldName] = $class->reflFields[$fieldName]->getValue($object);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"symfony/security-core": "^6.4|^7.0",
4040
"symfony/stopwatch": "^6.4|^7.0",
4141
"symfony/translation": "^6.4|^7.0",
42-
"symfony/type-info": "^7.1",
42+
"symfony/type-info": "^7.1.8",
4343
"symfony/uid": "^6.4|^7.0",
4444
"symfony/validator": "^6.4|^7.0",
4545
"symfony/var-dumper": "^6.4|^7.0",

0 commit comments

Comments
 (0)