@@ -6,6 +6,24 @@ head=$(sed '/^diff /Q' .github/expected-missing-return-types.diff)
6
6
(echo "$head" && echo && git diff -U2 src/) > .github/expected-missing-return-types.diff
7
7
git checkout composer.json src/
8
8
9
+ diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php
10
+ index f52a1ce1e9..1fb72535e1 100644
11
+ --- a/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php
12
+ +++ b/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php
13
+ @@ -285,5 +285,5 @@ class QueryMock extends AbstractQuery
14
+ * @return array|string
15
+ */
16
+ - public function getSQL()
17
+ + public function getSQL(): array|string
18
+ {
19
+ }
20
+ @@ -292,5 +292,5 @@ class QueryMock extends AbstractQuery
21
+ * @return Result|int
22
+ */
23
+ - protected function _doExecute()
24
+ + protected function _doExecute(): Result|int
25
+ {
26
+ }
9
27
diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
10
28
index bb5560a7b5..be86cbf98e 100644
11
29
--- a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
@@ -167,7 +185,7 @@ index 6b1c6c5fbe..bb80ed461e 100644
167
185
+ public function isFresh(ResourceInterface $resource, int $timestamp): bool;
168
186
}
169
187
diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php
170
- index d4ec1be090..747e093b1b 100644
188
+ index 41548a3e9d..f99739454f 100644
171
189
--- a/src/Symfony/Component/Console/Application.php
172
190
+++ b/src/Symfony/Component/Console/Application.php
173
191
@@ -215,5 +215,5 @@ class Application implements ResetInterface
@@ -276,7 +294,7 @@ index 2762cdf05c..737334268a 100644
276
294
+ public function getName(): string;
277
295
}
278
296
diff --git a/src/Symfony/Component/Console/Helper/Table.php b/src/Symfony/Component/Console/Helper/Table.php
279
- index 893b3192e9..94822ed191 100644
297
+ index 907c9f505c..3bfd23061a 100644
280
298
--- a/src/Symfony/Component/Console/Helper/Table.php
281
299
+++ b/src/Symfony/Component/Console/Helper/Table.php
282
300
@@ -193,5 +193,5 @@ class Table
@@ -322,6 +340,17 @@ index 08bab02ee4..1181f0795e 100644
322
340
+ protected function processValue(mixed $value, bool $isRoot = false): mixed
323
341
{
324
342
if (\is_array($value)) {
343
+ diff --git a/src/Symfony/Component/DependencyInjection/Compiler/DefinitionErrorExceptionPass.php b/src/Symfony/Component/DependencyInjection/Compiler/DefinitionErrorExceptionPass.php
344
+ index 895c155e07..3955c902d4 100644
345
+ --- a/src/Symfony/Component/DependencyInjection/Compiler/DefinitionErrorExceptionPass.php
346
+ +++ b/src/Symfony/Component/DependencyInjection/Compiler/DefinitionErrorExceptionPass.php
347
+ @@ -33,5 +33,5 @@ class DefinitionErrorExceptionPass extends AbstractRecursivePass
348
+ * @return void
349
+ */
350
+ - public function process(ContainerBuilder $container)
351
+ + public function process(ContainerBuilder $container): void
352
+ {
353
+ try {
325
354
diff --git a/src/Symfony/Component/DependencyInjection/Container.php b/src/Symfony/Component/DependencyInjection/Container.php
326
355
index f5d33682ff..e644489097 100644
327
356
--- a/src/Symfony/Component/DependencyInjection/Container.php
@@ -595,10 +624,10 @@ index 1cb865fd66..f6f4efe7a7 100644
595
624
+ public function getName(): string;
596
625
}
597
626
diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
598
- index f77a99e0ff..a6829efa75 100644
627
+ index fb84d96428..8ab979360a 100644
599
628
--- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
600
629
+++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
601
- @@ -457 ,5 +457 ,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
630
+ @@ -459 ,5 +459 ,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
602
631
* @return Response
603
632
*/
604
633
- protected function forward(Request $request, bool $catch = false, Response $entry = null)
@@ -922,7 +951,7 @@ index 84a84ad1f3..6f66b6d32a 100644
922
951
+ public function supportsDecoding(string $format): bool;
923
952
}
924
953
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
925
- index 829e178407..1ac8101771 100644
954
+ index e2b6c1bc8d..3c742d8cab 100644
926
955
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
927
956
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
928
957
@@ -210,5 +210,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
@@ -947,7 +976,7 @@ index 829e178407..1ac8101771 100644
947
976
{
948
977
if (null !== $object = $this->extractObjectToPopulate($class, $context, self::OBJECT_TO_POPULATE)) {
949
978
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
950
- index 7c4c5fb41b..840dd2bcdb 100644
979
+ index 98ccfca4e4..0b1bc69b00 100644
951
980
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
952
981
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
953
982
@@ -139,10 +139,10 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
@@ -969,15 +998,15 @@ index 7c4c5fb41b..840dd2bcdb 100644
969
998
- protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null)
970
999
+ protected function instantiateObject(array &$data, string $class, array &$context, \ReflectionClass $reflectionClass, array|bool $allowedAttributes, string $format = null): object
971
1000
{
972
- if ($this->classDiscriminatorResolver && $mapping = $this->classDiscriminatorResolver->getMappingForClass($ class)) {
973
- @@ -287 ,5 +287 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
1001
+ if ($class !== $mappedClass = $this->getMappedClass($data, $ class, $context )) {
1002
+ @@ -276 ,5 +276 ,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
974
1003
* @return string[]
975
1004
*/
976
1005
- abstract protected function extractAttributes(object $object, string $format = null, array $context = []);
977
1006
+ abstract protected function extractAttributes(object $object, string $format = null, array $context = []): array;
978
1007
979
1008
/**
980
- @@ -294 ,15 +294 ,15 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
1009
+ @@ -283 ,15 +283 ,15 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
981
1010
* @return mixed
982
1011
*/
983
1012
- abstract protected function getAttributeValue(object $object, string $attribute, string $format = null, array $context = []);
@@ -997,7 +1026,7 @@ index 7c4c5fb41b..840dd2bcdb 100644
997
1026
{
998
1027
if (!isset($context['cache_key'])) {
999
1028
diff --git a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
1000
- index ae3adbfe33..3a38429cf1 100644
1029
+ index 1786d6fff1..04a2e62ed2 100644
1001
1030
--- a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
1002
1031
+++ b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
1003
1032
@@ -45,5 +45,5 @@ interface DenormalizerInterface
@@ -1014,7 +1043,7 @@ index ae3adbfe33..3a38429cf1 100644
1014
1043
+ public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool;
1015
1044
}
1016
1045
diff --git a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
1017
- index 691e9c70f0..fc87f672e1 100644
1046
+ index cb43d78cc7..d215ffe997 100644
1018
1047
--- a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
1019
1048
+++ b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
1020
1049
@@ -37,5 +37,5 @@ interface NormalizerInterface
@@ -1090,10 +1119,10 @@ index ee1d68c78f..9baaabb04c 100644
1090
1119
{
1091
1120
return self::PROPERTY_CONSTRAINT;
1092
1121
diff --git a/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php b/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php
1093
- index 9aa01a9dec..c18b07ac46 100644
1122
+ index 744a2cd720..b656f2885f 100644
1094
1123
--- a/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php
1095
1124
+++ b/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php
1096
- @@ -307 ,5 +307 ,5 @@ abstract class ConstraintValidatorTestCase extends TestCase
1125
+ @@ -303 ,5 +303 ,5 @@ abstract class ConstraintValidatorTestCase extends TestCase
1097
1126
* @psalm-return T
1098
1127
*/
1099
1128
- abstract protected function createValidator();
0 commit comments