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
+1 -1
View File
@@ -22,6 +22,6 @@ class Countable implements \Countable
public function count()
{
return count($this->content);
return \count($this->content);
}
}
@@ -55,7 +55,7 @@ class CustomArrayObject implements \ArrayAccess, \IteratorAggregate, \Countable,
public function count()
{
return count($this->array);
return \count($this->array);
}
public function serialize()
@@ -11,8 +11,8 @@
namespace Symfony\Component\Validator\Tests\Fixtures;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Constraints\Length;
use Symfony\Component\Validator\Mapping\ClassMetadata;
class EntityStaticCar extends EntityStaticVehicle
{
@@ -11,8 +11,8 @@
namespace Symfony\Component\Validator\Tests\Fixtures;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Constraints\Length;
use Symfony\Component\Validator\Mapping\ClassMetadata;
class EntityStaticCarTurbo extends EntityStaticCar
{
@@ -11,8 +11,8 @@
namespace Symfony\Component\Validator\Tests\Fixtures;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Constraints\Length;
use Symfony\Component\Validator\Mapping\ClassMetadata;
class EntityStaticVehicle
{
@@ -23,13 +23,13 @@ class FakeMetadataFactory implements MetadataFactoryInterface
{
$hash = null;
if (is_object($class)) {
if (\is_object($class)) {
$hash = spl_object_hash($class);
$class = get_class($class);
$class = \get_class($class);
}
if (!is_string($class)) {
throw new NoSuchMetadataException(sprintf('No metadata for type %s', gettype($class)));
if (!\is_string($class)) {
throw new NoSuchMetadataException(sprintf('No metadata for type %s', \gettype($class)));
}
if (!isset($this->metadatas[$class])) {
@@ -47,12 +47,12 @@ class FakeMetadataFactory implements MetadataFactoryInterface
{
$hash = null;
if (is_object($class)) {
if (\is_object($class)) {
$hash = spl_object_hash($class);
$class = get_class($class);
$class = \get_class($class);
}
if (!is_string($class)) {
if (!\is_string($class)) {
return false;
}
@@ -66,7 +66,7 @@ class FakeMetadataFactory implements MetadataFactoryInterface
public function addMetadataForValue($value, MetadataInterface $metadata)
{
$key = is_object($value) ? spl_object_hash($value) : $value;
$key = \is_object($value) ? spl_object_hash($value) : $value;
$this->metadatas[$key] = $metadata;
}
}