Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+3 -3
View File
@@ -125,11 +125,11 @@ class GenericMetadata implements MetadataInterface
throw new ConstraintDefinitionException(sprintf(
'The constraint "%s" can only be put on classes. Please use '.
'"Symfony\Component\Validator\Constraints\Valid" instead.',
get_class($constraint)
\get_class($constraint)
));
}
if ($constraint instanceof Valid) {
if ($constraint instanceof Valid && null === $constraint->groups) {
$this->cascadingStrategy = CascadingStrategy::CASCADE;
if ($constraint->traverse) {
@@ -181,7 +181,7 @@ class GenericMetadata implements MetadataInterface
*/
public function hasConstraints()
{
return count($this->constraints) > 0;
return \count($this->constraints) > 0;
}
/**