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
@@ -213,7 +213,7 @@ class ValidatorBuilder implements ValidatorBuilderInterface
*/
public function setMetadataFactory(MetadataFactoryInterface $metadataFactory)
{
if (count($this->xmlMappings) > 0 || count($this->yamlMappings) > 0 || count($this->methodMappings) > 0 || null !== $this->annotationReader) {
if (\count($this->xmlMappings) > 0 || \count($this->yamlMappings) > 0 || \count($this->methodMappings) > 0 || null !== $this->annotationReader) {
throw new ValidatorException('You cannot set a custom metadata factory after adding custom mappings. You should do either of both.');
}
@@ -303,9 +303,9 @@ class ValidatorBuilder implements ValidatorBuilderInterface
$loaders = $this->getLoaders();
$loader = null;
if (count($loaders) > 1) {
if (\count($loaders) > 1) {
$loader = new LoaderChain($loaders);
} elseif (1 === count($loaders)) {
} elseif (1 === \count($loaders)) {
$loader = $loaders[0];
}