@@ -11875,84 +11875,83 @@ index b684fddb2f..ade2242791 100644
11875
11875
{
11876
11876
return $this->data;
11877
11877
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
11878
- index 079b1e7a9e..e3cfe43e67 100644
11878
+ index efe4a6e0e1..fbf291af7e 100644
11879
11879
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
11880
11880
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
11881
- @@ -221 ,5 +221 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11881
+ @@ -211 ,5 +211 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11882
11882
* @throws LogicException if the 'allow_extra_attributes' context variable is false and no class metadata factory is provided
11883
11883
*/
11884
11884
- protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false)
11885
11885
+ protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false): array|bool
11886
11886
{
11887
11887
$allowExtraAttributes = $context[self::ALLOW_EXTRA_ATTRIBUTES] ?? $this->defaultContext[self::ALLOW_EXTRA_ATTRIBUTES];
11888
- @@ -271 ,5 +271 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11888
+ @@ -261 ,5 +261 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11889
11889
* @return bool
11890
11890
*/
11891
11891
- protected function isAllowedAttribute(object|string $classOrObject, string $attribute, string $format = null, array $context = [])
11892
11892
+ protected function isAllowedAttribute(object|string $classOrObject, string $attribute, string $format = null, array $context = []): bool
11893
11893
{
11894
11894
$ignoredAttributes = $context[self::IGNORED_ATTRIBUTES] ?? $this->defaultContext[self::IGNORED_ATTRIBUTES];
11895
- @@ -322 ,5 +322 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11895
+ @@ -312 ,5 +312 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11896
11896
* @throws MissingConstructorArgumentsException
11897
11897
*/
11898
11898
- protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null)
11899
11899
+ protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null): object
11900
11900
{
11901
11901
if (null !== $object = $this->extractObjectToPopulate($class, $context, self::OBJECT_TO_POPULATE)) {
11902
11902
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
11903
- index 0dba039bc0..576445825e 100644
11903
+ index 4f061239b9..85c9f17a83 100644
11904
11904
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
11905
11905
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
11906
- @@ -143 ,5 +143 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11906
+ @@ -141 ,5 +141 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11907
11907
* @return bool
11908
11908
*/
11909
- - public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */ )
11910
- + public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */ ): bool
11909
+ - public function supportsNormalization(mixed $data, string $format = null, array $context = [])
11910
+ + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool
11911
11911
{
11912
11912
return \is_object($data) && !$data instanceof \Traversable;
11913
- @@ -151 ,5 +151 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11913
+ @@ -149 ,5 +149 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11914
11914
* @return array|string|int|float|bool|\ArrayObject|null
11915
11915
*/
11916
11916
- public function normalize(mixed $object, string $format = null, array $context = [])
11917
11917
+ public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
11918
11918
{
11919
11919
if (!isset($context['cache_key'])) {
11920
- @@ -235 ,5 +235 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11920
+ @@ -233 ,5 +233 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11921
11921
* @return object
11922
11922
*/
11923
11923
- protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null)
11924
11924
+ protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null): object
11925
11925
{
11926
11926
if ($class !== $mappedClass = $this->getMappedClass($data, $class, $context)) {
11927
- @@ -286 ,5 +286 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11927
+ @@ -284 ,5 +284 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11928
11928
* @return string[]
11929
11929
*/
11930
11930
- abstract protected function extractAttributes(object $object, string $format = null, array $context = []);
11931
11931
+ abstract protected function extractAttributes(object $object, string $format = null, array $context = []): array;
11932
11932
11933
11933
/**
11934
- @@ -293,5 +293,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11934
+ @@ -291,10 +291,10 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11935
11935
* @return mixed
11936
11936
*/
11937
11937
- abstract protected function getAttributeValue(object $object, string $attribute, string $format = null, array $context = []);
11938
11938
+ abstract protected function getAttributeValue(object $object, string $attribute, string $format = null, array $context = []): mixed;
11939
11939
11940
11940
/**
11941
- @@ -300,5 +300,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11942
11941
* @return bool
11943
11942
*/
11944
- - public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */ )
11945
- + public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */ ): bool
11943
+ - public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = [])
11944
+ + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool
11946
11945
{
11947
11946
return class_exists($type) || (interface_exists($type, false) && null !== $this->classDiscriminatorResolver?->getMappingForClass($type));
11948
- @@ -308 ,5 +308 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11947
+ @@ -304 ,5 +304 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11949
11948
* @return mixed
11950
11949
*/
11951
11950
- public function denormalize(mixed $data, string $type, string $format = null, array $context = [])
11952
11951
+ public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed
11953
11952
{
11954
11953
if (!isset($context['cache_key'])) {
11955
- @@ -414 ,5 +414 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11954
+ @@ -410 ,5 +410 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
11956
11955
* @return void
11957
11956
*/
11958
11957
- abstract protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = []);
@@ -11980,7 +11979,7 @@ index 48e8c3fb54..a71c3ea476 100644
11980
11979
+ public function setDenormalizer(DenormalizerInterface $denormalizer): void;
11981
11980
}
11982
11981
diff --git a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
11983
- index 4edb70096d..8c844785db 100644
11982
+ index e4d0ed9123..8a39d97f36 100644
11984
11983
--- a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
11985
11984
+++ b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
11986
11985
@@ -47,5 +47,5 @@ interface DenormalizerInterface
@@ -11990,18 +11989,18 @@ index 4edb70096d..8c844785db 100644
11990
11989
+ public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed;
11991
11990
11992
11991
/**
11993
- @@ -59 ,5 +59 ,5 @@ interface DenormalizerInterface
11992
+ @@ -58 ,5 +58 ,5 @@ interface DenormalizerInterface
11994
11993
* @return bool
11995
11994
*/
11996
- - public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */ );
11997
- + public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */ ): bool;
11995
+ - public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []);
11996
+ + public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool;
11998
11997
11999
11998
/**
12000
11999
diff --git a/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
12001
- index 063d34ea59..fb10337d35 100644
12000
+ index 3d11567a7b..22e873b151 100644
12002
12001
--- a/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
12003
12002
+++ b/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
12004
- @@ -147 ,5 +147 ,5 @@ class GetSetMethodNormalizer extends AbstractObjectNormalizer
12003
+ @@ -131 ,5 +131 ,5 @@ class GetSetMethodNormalizer extends AbstractObjectNormalizer
12005
12004
* @return void
12006
12005
*/
12007
12006
- protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = [])
@@ -12030,7 +12029,7 @@ index 40a4fa0e8c..a1e2749aae 100644
12030
12029
{
12031
12030
$this->normalizer = $normalizer;
12032
12031
diff --git a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
12033
- index 40779de316..105cf99b06 100644
12032
+ index 01979d6fcf..e918540c83 100644
12034
12033
--- a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
12035
12034
+++ b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
12036
12035
@@ -39,5 +39,5 @@ interface NormalizerInterface
@@ -12040,29 +12039,29 @@ index 40779de316..105cf99b06 100644
12040
12039
+ public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null;
12041
12040
12042
12041
/**
12043
- @@ -50 ,5 +50 ,5 @@ interface NormalizerInterface
12042
+ @@ -49 ,5 +49 ,5 @@ interface NormalizerInterface
12044
12043
* @return bool
12045
12044
*/
12046
- - public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */ );
12047
- + public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */ ): bool;
12045
+ - public function supportsNormalization(mixed $data, string $format = null, array $context = []);
12046
+ + public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool;
12048
12047
12049
12048
/**
12050
12049
diff --git a/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
12051
- index 357c36426e..f4423f47f4 100644
12050
+ index af530f8d3d..dd672812f1 100644
12052
12051
--- a/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
12053
12052
+++ b/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
12054
- @@ -146 ,5 +146 ,5 @@ class ObjectNormalizer extends AbstractObjectNormalizer
12053
+ @@ -136 ,5 +136 ,5 @@ class ObjectNormalizer extends AbstractObjectNormalizer
12055
12054
* @return void
12056
12055
*/
12057
12056
- protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = [])
12058
12057
+ protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = []): void
12059
12058
{
12060
12059
try {
12061
12060
diff --git a/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
12062
- index ec12db9bb2..d3b7f036a8 100644
12061
+ index cfe93bc10b..7f1d8e5e13 100644
12063
12062
--- a/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
12064
12063
+++ b/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
12065
- @@ -187 ,5 +187 ,5 @@ class PropertyNormalizer extends AbstractObjectNormalizer
12064
+ @@ -171 ,5 +171 ,5 @@ class PropertyNormalizer extends AbstractObjectNormalizer
12066
12065
* @return void
12067
12066
*/
12068
12067
- protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = [])
0 commit comments