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
+31 -6
View File
@@ -42,11 +42,15 @@ class AttributeMetadata implements AttributeMetadataInterface
public $maxDepth;
/**
* Constructs a metadata for the given attribute.
* @var string|null
*
* @param string $name
* @internal This property is public in order to reduce the size of the
* class' serialized representation. Do not access it. Use
* {@link getSerializedName()} instead.
*/
public function __construct($name)
public $serializedName;
public function __construct(string $name)
{
$this->name = $name;
}
@@ -54,7 +58,7 @@ class AttributeMetadata implements AttributeMetadataInterface
/**
* {@inheritdoc}
*/
public function getName()
public function getName(): string
{
return $this->name;
}
@@ -72,7 +76,7 @@ class AttributeMetadata implements AttributeMetadataInterface
/**
* {@inheritdoc}
*/
public function getGroups()
public function getGroups(): array
{
return $this->groups;
}
@@ -93,6 +97,22 @@ class AttributeMetadata implements AttributeMetadataInterface
return $this->maxDepth;
}
/**
* {@inheritdoc}
*/
public function setSerializedName(string $serializedName = null)
{
$this->serializedName = $serializedName;
}
/**
* {@inheritdoc}
*/
public function getSerializedName(): ?string
{
return $this->serializedName;
}
/**
* {@inheritdoc}
*/
@@ -106,6 +126,11 @@ class AttributeMetadata implements AttributeMetadataInterface
if (null === $this->maxDepth) {
$this->maxDepth = $attributeMetadata->getMaxDepth();
}
// Overwrite only if not defined
if (null === $this->serializedName) {
$this->serializedName = $attributeMetadata->getSerializedName();
}
}
/**
@@ -115,6 +140,6 @@ class AttributeMetadata implements AttributeMetadataInterface
*/
public function __sleep()
{
return ['name', 'groups', 'maxDepth'];
return ['name', 'groups', 'maxDepth', 'serializedName'];
}
}