@@ -8130,6 +8130,7 @@ index 1924b1ddb0..62c58c8e8b 100644
8130
8130
$annotatedClasses = [];
8131
8131
diff --git a/src/Symfony/Component/HttpKernel/DependencyInjection/ControllerArgumentValueResolverPass.php b/src/Symfony/Component/HttpKernel/DependencyInjection/ControllerArgumentValueResolverPass.php
8132
8132
index dff3e248ae..381db9aa8f 100644
8133
+ index 6e00840c7e..8e69c81c23 100644
8133
8134
--- a/src/Symfony/Component/HttpKernel/DependencyInjection/ControllerArgumentValueResolverPass.php
8134
8135
+++ b/src/Symfony/Component/HttpKernel/DependencyInjection/ControllerArgumentValueResolverPass.php
8135
8136
@@ -34,5 +34,5 @@ class ControllerArgumentValueResolverPass implements CompilerPassInterface
@@ -11254,32 +11255,32 @@ index fc6336ebdb..e13a834930 100644
11254
11255
{
11255
11256
if (1 > \func_num_args()) {
11256
11257
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
11257
- index 52e985815b..e7d0493152 100644
11258
+ index 7d138b0b26..03e28f9d20 100644
11258
11259
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
11259
11260
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
11260
- @@ -210 ,5 +210 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11261
+ @@ -215 ,5 +215 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11261
11262
* @throws LogicException if the 'allow_extra_attributes' context variable is false and no class metadata factory is provided
11262
11263
*/
11263
11264
- protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false)
11264
11265
+ protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false): array|bool
11265
11266
{
11266
11267
$allowExtraAttributes = $context[self::ALLOW_EXTRA_ATTRIBUTES] ?? $this->defaultContext[self::ALLOW_EXTRA_ATTRIBUTES];
11267
- @@ -260 ,5 +260 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11268
+ @@ -265 ,5 +265 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11268
11269
* @return bool
11269
11270
*/
11270
11271
- protected function isAllowedAttribute(object|string $classOrObject, string $attribute, string $format = null, array $context = [])
11271
11272
+ protected function isAllowedAttribute(object|string $classOrObject, string $attribute, string $format = null, array $context = []): bool
11272
11273
{
11273
11274
$ignoredAttributes = $context[self::IGNORED_ATTRIBUTES] ?? $this->defaultContext[self::IGNORED_ATTRIBUTES];
11274
- @@ -311 ,5 +311 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11275
+ @@ -316 ,5 +316 ,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
11275
11276
* @throws MissingConstructorArgumentException
11276
11277
*/
11277
11278
- protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null)
11278
11279
+ protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null): object
11279
11280
{
11280
11281
if (null !== $object = $this->extractObjectToPopulate($class, $context, self::OBJECT_TO_POPULATE)) {
11281
11282
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
11282
- index a02a46b941..aedfd67c2e 100644
11283
+ index 75fe3a5cb1..a28dd40568 100644
11283
11284
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
11284
11285
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
11285
11286
@@ -139,10 +139,10 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
@@ -11321,46 +11322,36 @@ index a02a46b941..aedfd67c2e 100644
11321
11322
- public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */)
11322
11323
+ public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool
11323
11324
{
11324
- return class_exists($type) || (interface_exists($type, false) && $this->classDiscriminatorResolver && null !== $this->classDiscriminatorResolver->getMappingForClass($type));
11325
+ return class_exists($type) || (interface_exists($type, false) && null !== $this->classDiscriminatorResolver? ->getMappingForClass($type));
11325
11326
}
11326
11327
11327
11328
- public function denormalize(mixed $data, string $type, string $format = null, array $context = [])
11328
11329
+ public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed
11329
11330
{
11330
11331
if (!isset($context['cache_key'])) {
11331
- diff --git a/src/Symfony/Component/Serializer/Normalizer/DenormalizerAwareTrait.php b/src/Symfony/Component/Serializer/Normalizer/DenormalizerAwareTrait.php
11332
- index c5cc86ecf6..c65534fafb 100644
11333
- --- a/src/Symfony/Component/Serializer/Normalizer/DenormalizerAwareTrait.php
11334
- +++ b/src/Symfony/Component/Serializer/Normalizer/DenormalizerAwareTrait.php
11335
- @@ -25,5 +25,5 @@ trait DenormalizerAwareTrait
11336
- * @return void
11337
- */
11338
- - public function setDenormalizer(DenormalizerInterface $denormalizer)
11339
- + public function setDenormalizer(DenormalizerInterface $denormalizer): void
11340
- {
11341
- $this->denormalizer = $denormalizer;
11342
11332
diff --git a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
11343
- index 1786d6fff1..04a2e62ed2 100644
11333
+ index 1d83b2da11..1c632f42bf 100644
11344
11334
--- a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
11345
11335
+++ b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
11346
- @@ -45 ,5 +45 ,5 @@ interface DenormalizerInterface
11336
+ @@ -47 ,5 +47 ,5 @@ interface DenormalizerInterface
11347
11337
* @throws ExceptionInterface Occurs for all the other cases of errors
11348
11338
*/
11349
11339
- public function denormalize(mixed $data, string $type, string $format = null, array $context = []);
11350
11340
+ public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed;
11351
11341
11352
11342
/**
11353
- @@ -57,4 +57,4 @@ interface DenormalizerInterface
11343
+ @@ -64,5 +64,5 @@ interface DenormalizerInterface
11354
11344
* @return bool
11355
11345
*/
11356
11346
- public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */);
11357
11347
+ public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool;
11358
- }
11348
+
11349
+ /**
11359
11350
diff --git a/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
11360
- index e08dd5d9ec..cc282ae4bb 100644
11351
+ index 2719c8b52c..1112f7f3cc 100644
11361
11352
--- a/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
11362
11353
+++ b/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
11363
- @@ -138 ,5 +138 ,5 @@ class GetSetMethodNormalizer extends AbstractObjectNormalizer
11354
+ @@ -148 ,5 +148 ,5 @@ class GetSetMethodNormalizer extends AbstractObjectNormalizer
11364
11355
* @return void
11365
11356
*/
11366
11357
- protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = [])
@@ -11379,38 +11370,39 @@ index 40a4fa0e8c..a1e2749aae 100644
11379
11370
{
11380
11371
$this->normalizer = $normalizer;
11381
11372
diff --git a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
11382
- index cb43d78cc7..d215ffe997 100644
11373
+ index d6d0707ff5..9953ad3005 100644
11383
11374
--- a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
11384
11375
+++ b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
11385
- @@ -37 ,5 +37 ,5 @@ interface NormalizerInterface
11376
+ @@ -39 ,5 +39 ,5 @@ interface NormalizerInterface
11386
11377
* @throws ExceptionInterface Occurs for all the other cases of errors
11387
11378
*/
11388
11379
- public function normalize(mixed $object, string $format = null, array $context = []);
11389
11380
+ public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null;
11390
11381
11391
11382
/**
11392
- @@ -48,4 +48,4 @@ interface NormalizerInterface
11383
+ @@ -55,5 +55,5 @@ interface NormalizerInterface
11393
11384
* @return bool
11394
11385
*/
11395
11386
- public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */);
11396
11387
+ public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool;
11397
- }
11388
+
11389
+ /**
11398
11390
diff --git a/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
11399
- index 8018cb7a49..aa06b9c50b 100644
11391
+ index 140e89c6a1..f77348252b 100644
11400
11392
--- a/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
11401
11393
+++ b/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
11402
- @@ -133 ,5 +133 ,5 @@ class ObjectNormalizer extends AbstractObjectNormalizer
11394
+ @@ -143 ,5 +143 ,5 @@ class ObjectNormalizer extends AbstractObjectNormalizer
11403
11395
* @return void
11404
11396
*/
11405
11397
- protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = [])
11406
11398
+ protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = []): void
11407
11399
{
11408
11400
try {
11409
11401
diff --git a/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
11410
- index 3dd734055d..cbc0e86d27 100644
11402
+ index 645ba74290..d960bf4b20 100644
11411
11403
--- a/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
11412
11404
+++ b/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
11413
- @@ -175 ,5 +175 ,5 @@ class PropertyNormalizer extends AbstractObjectNormalizer
11405
+ @@ -185 ,5 +185 ,5 @@ class PropertyNormalizer extends AbstractObjectNormalizer
11414
11406
* @return void
11415
11407
*/
11416
11408
- protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = [])
0 commit comments