@@ -11912,84 +11912,83 @@ index b684fddb2f..ade2242791 100644
11912
11912
{
11913
11913
return $this->data;
11914
11914
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
11915
- index 079b1e7a9e..e3cfe43e67 100644
11915
+ index efe4a6e0e1..fbf291af7e 100644
11916
11916
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
11917
11917
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
11918
- @@ -221 ,5 +221 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11918
+ @@ -211 ,5 +211 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11919
11919
* @throws LogicException if the 'allow_extra_attributes' context variable is false and no class metadata factory is provided
11920
11920
*/
11921
11921
- protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false)
11922
11922
+ protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false): array|bool
11923
11923
{
11924
11924
$allowExtraAttributes = $context[self::ALLOW_EXTRA_ATTRIBUTES] ?? $this->defaultContext[self::ALLOW_EXTRA_ATTRIBUTES];
11925
- @@ -271 ,5 +271 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11925
+ @@ -261 ,5 +261 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11926
11926
* @return bool
11927
11927
*/
11928
11928
- protected function isAllowedAttribute(object|string $classOrObject, string $attribute, string $format = null, array $context = [])
11929
11929
+ protected function isAllowedAttribute(object|string $classOrObject, string $attribute, string $format = null, array $context = []): bool
11930
11930
{
11931
11931
$ignoredAttributes = $context[self::IGNORED_ATTRIBUTES] ?? $this->defaultContext[self::IGNORED_ATTRIBUTES];
11932
- @@ -322 ,5 +322 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11932
+ @@ -312 ,5 +312 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11933
11933
* @throws MissingConstructorArgumentsException
11934
11934
*/
11935
11935
- protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null)
11936
11936
+ protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null): object
11937
11937
{
11938
11938
if (null !== $object = $this->extractObjectToPopulate($class, $context, self::OBJECT_TO_POPULATE)) {
11939
11939
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
11940
- index 0dba039bc0..576445825e 100644
11940
+ index 4f061239b9..85c9f17a83 100644
11941
11941
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
11942
11942
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
11943
- @@ -143 ,5 +143 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11943
+ @@ -141 ,5 +141 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11944
11944
* @return bool
11945
11945
*/
11946
- - public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */ )
11947
- + public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */ ): bool
11946
+ - public function supportsNormalization(mixed $data, string $format = null, array $context = [])
11947
+ + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool
11948
11948
{
11949
11949
return \is_object($data) && !$data instanceof \Traversable;
11950
- @@ -151 ,5 +151 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11950
+ @@ -149 ,5 +149 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11951
11951
* @return array|string|int|float|bool|\ArrayObject|null
11952
11952
*/
11953
11953
- public function normalize(mixed $object, string $format = null, array $context = [])
11954
11954
+ public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
11955
11955
{
11956
11956
if (!isset($context['cache_key'])) {
11957
- @@ -235 ,5 +235 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11957
+ @@ -233 ,5 +233 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11958
11958
* @return object
11959
11959
*/
11960
11960
- protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null)
11961
11961
+ protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null): object
11962
11962
{
<
10000
tr class="diff-line-row">11963
11963
if ($class !== $mappedClass = $this->getMappedClass($data, $class, $context)) {
11964
- @@ -286 ,5 +286 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11964
+ @@ -284 ,5 +284 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11965
11965
* @return string[]
11966
11966
*/
11967
11967
- abstract protected function extractAttributes(object $object, string $format = null, array $context = []);
11968
11968
+ abstract protected function extractAttributes(object $object, string $format = null, array $context = []): array;
11969
11969
11970
11970
/**
11971
- @@ -293,5 +293,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11971
+ @@ -291,10 +291,10 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11972
11972
* @return mixed
11973
11973
*/
11974
11974
- abstract protected function getAttributeValue(object $object, string $attribute, string $format = null, array $context = []);
11975
11975
+ abstract protected function getAttributeValue(object $object, string $attribute, string $format = null, array $context = []): mixed;
11976
11976
11977
11977
/**
11978
- @@ -300,5 +300,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11979
11978
* @return bool
11980
11979
*/
11981
- - public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */ )
11982
- + public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */ ): bool
11980
+ - public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = [])
11981
+ + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool
11983
11982
{
11984
11983
return class_exists($type) || (interface_exists($type, false) && null !== $this->classDiscriminatorResolver?->getMappingForClass($type));
11985
- @@ -308 ,5 +308 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11984
+ @@ -304 ,5 +304 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11986
11985
* @return mixed
11987
11986
*/
11988
11987
- public function denormalize(mixed $data, string $type, string $format = null, array $context = [])
11989
11988
+ public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed
11990
11989
{
11991
11990
if (!isset($context['cache_key'])) {
11992
- @@ -414 ,5 +414 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11991
+ @@ -410 ,5 +410 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11993
11992
* @return void
11994
11993
*/
11995
11994
- abstract protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = []);
@@ -12017,7 +12016,7 @@ index 48e8c3fb54..a71c3ea476 100644
12017
12016
+ public function setDenormalizer(DenormalizerInterface $denormalizer): void;
12018
12017
}
12019
12018
diff --git a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
12020
- index 4edb70096d..8c844785db 100644
12019
+ index e4d0ed9123..8a39d97f36 100644
12021
12020
--- a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
12022
12021
+++ b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
12023
12022
@@ -47,5 +47,5 @@ interface DenormalizerInterface
@@ -12027,18 +12026,18 @@ index 4edb70096d..8c844785db 100644
12027
12026
+ public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed;
12028
12027
12029
12028
/**
12030
- @@ -59 ,5 +59 ,5 @@ interface DenormalizerInterface
12029
+ @@ -58 ,5 +58 ,5 @@ interface DenormalizerInterface
12031
12030
* @return bool
12032
12031
*/
12033
- - public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */ );
12034
- + public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */ ): bool;
12032
+ - public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []);
12033
+ + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool;
12035
12034
12036
12035
/**
12037
12036
diff --git a/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
12038
- index 063d34ea59..fb10337d35 100644
12037
+ index 3d11567a7b..22e873b151 100644
12039
12038
--- a/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
12040
12039
+++ b/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
12041
- @@ -147 ,5 +147 ,5 @@ class GetSetMethodNormalizer extends AbstractObjectNormalizer
12040
+ @@ -131 ,5 +131 ,5 @@ class GetSetMethodNormalizer extends AbstractObjectNormalizer
12042
12041
* @return void
12043
12042
*/
12044
12043
- protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = [])
@@ -12067,7 +12066,7 @@ index 40a4fa0e8c..a1e2749aae 100644
12067
12066
{
12068
12067
$this->normalizer = $normalizer;
12069
12068
diff --git a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
12070
- index 40779de316..105cf99b06 100644
12069
+ index 01979d6fcf..e918540c83 100644
12071
12070
--- a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
12072
12071
+++ b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
12073
12072
@@ -39,5 +39,5 @@ interface NormalizerInterface
@@ -12077,29 +12076,29 @@ index 40779de316..105cf99b06 100644
12077
12076
+ public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null;
12078
12077
12079
12078
/**
12080
- @@ -50 ,5 +50 ,5 @@ interface NormalizerInterface
12079
+ @@ -49 ,5 +49 ,5 @@ interface NormalizerInterface
12081
12080
* @return bool
12082
12081
*/
12083
- - public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */ );
12084
- + public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */ ): bool;
12082
+ - public function supportsNormalization(mixed $data, string $format = null, array $context = []);
12083
+ + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool;
12085
12084
12086
12085
/**
12087
12086
diff --git a/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
12088
- index 357c36426e..f4423f47f4 100644
12087
+ index af530f8d3d..dd672812f1 100644
12089
12088
--- a/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
12090
12089
+++ b/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
12091
- @@ -146 ,5 +146 ,5 @@ class ObjectNormalizer extends AbstractObjectNormalizer
12090
+ @@ -136 ,5 +136 ,5 @@ class ObjectNormalizer extends AbstractObjectNormalizer
12092
12091
* @return void
12093
12092
*/
12094
12093
- protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = [])
12095
12094
+ protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = []): void
12096
12095
{
12097
12096
try {
12098
12097
diff --git a/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
12099
- index ec12db9bb2..d3b7f036a8 100644
12098
+ index cfe93bc10b..7f1d8e5e13 100644
12100
12099
--- a/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
12101
12100
+++ b/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
12102
- @@ -187 ,5 +187 ,5 @@ class PropertyNormalizer extends AbstractObjectNormalizer
12101
+ @@ -171 ,5 +171 ,5 @@ class PropertyNormalizer extends AbstractObjectNormalizer
12103
12102
* @return void
12104
12103
*/
12105
12104
- protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = [])
0 commit comments