@@ -16,6 +16,17 @@ index 1750d55ee2..c18494167a 100644
16
16
+
17
17
]
18
18
},
19
+ diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
20
+ index d68ae4c8b3..8e980a9e70 100644
21
+ --- a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
22
+ +++ b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
23
+ @@ -88,5 +88,5 @@ abstract class KernelTestCase extends TestCase
24
+ * @return TestContainer
25
+ */
26
+ - protected static function getContainer(): ContainerInterface
27
+ + protected static function getContainer(): TestContainer
28
+ {
29
+ if (!static::$booted) {
19
30
diff --git a/src/Symfony/Component/BrowserKit/AbstractBrowser.php b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
20
31
index 697e34cb77..9a1e4c5618 100644
21
32
--- a/src/Symfony/Component/BrowserKit/AbstractBrowser.php
@@ -32,7 +43,7 @@ index 697e34cb77..9a1e4c5618 100644
32
43
*/
33
44
- abstract protected function doRequest(object $request);
34
45
+ abstract protected function doRequest(object $request): object;
35
-
46
+
36
47
/**
37
48
@@ -460,5 +460,5 @@ abstract class AbstractBrowser
38
49
* @return object
@@ -110,21 +121,21 @@ index b94a4378f5..db502e12a7 100644
110
121
*/
111
122
- public function load(mixed $resource, string $type = null);
112
123
+ public function load(mixed $resource, string $type = null): mixed;
113
-
124
+
114
125
/**
115
126
@@ -35,5 +35,5 @@ interface LoaderInterface
116
127
* @return bool
117
128
*/
118
129
- public function supports(mixed $resource, string $type = null);
119
130
+ public function supports(mixed $resource, string $type = null): bool;
120
-
131
+
121
132
/**
122
133
@@ -42,5 +42,5 @@ interface LoaderInterface
123
134
* @return LoaderResolverInterface
124
135
*/
125
136
- public function getResolver();
126
137
+ public function getResolver(): LoaderResolverInterface;
127
-
138
+
128
139
/**
129
140
diff --git a/src/Symfony/Component/Config/ResourceCheckerInterface.php b/src/Symfony/Component/Config/ResourceCheckerInterface.php
130
141
index 6b1c6c5fbe..bb80ed461e 100644
@@ -135,7 +146,7 @@ index 6b1c6c5fbe..bb80ed461e 100644
135
146
*/
136
147
- public function supports(ResourceInterface $metadata);
137
148
+ public function supports(ResourceInterface $metadata): bool;
138
-
149
+
139
150
/**
140
151
@@ -42,4 +42,4 @@ interface ResourceCheckerInterface
141
152
* @return bool
@@ -233,21 +244,21 @@ index 024da1884e..943790e875 100644
233
244
*/
234
245
- public function getParameterOption(string|array $values, string|bool|int|float|array|null $default = false, bool $onlyParams = false);
235
246
+ public function getParameterOption(string|array $values, string|bool|int|float|array|null $default = false, bool $onlyParams = false): mixed;
236
-
247
+
237
248
/**
238
249
@@ -84,5 +84,5 @@ interface InputInterface
239
250
* @throws InvalidArgumentException When argument given doesn't exist
240
251
*/
241
252
- public function getArgument(string $name);
242
253
+ public function getArgument(string $name): mixed;
243
-
254
+
244
255
/**
245
256
@@ -112,5 +112,5 @@ interface InputInterface
246
257
* @throws InvalidArgumentException When option given doesn't exist
247
258
*/
248
259
- public function getOption(string $name);
249
260
+ public function getOption(string $name): mixed;
250
-
261
+
251
262
/**
252
263
diff --git a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
253
264
index 326d8d4f5f..e62124c7af 100644
@@ -280,7 +291,7 @@ index aa5d6b317e..31ffbca4ef 100644
280
291
*/
281
292
- public function getParameter(string $name);
282
293
+ public function getParameter(string $name): array|bool|string|int|float|null;
283
-
294
+
284
295
public function hasParameter(string $name): bool;
285
296
diff --git a/src/Symfony/Component/DependencyInjection/Extension/ConfigurationExtensionInterface.php b/src/Symfony/Component/DependencyInjection/Extension/ConfigurationExtensionInterface.php
286
297
index a42967f4da..4e86e16f9d 100644
@@ -326,14 +337,14 @@ index f2373ed5ea..1eec21a938 100644
326
337
*/
327
338
- public function getNamespace();
328
339
+ public function getNamespace(): string;
329
-
340
+
330
341
/**
331
342
@@ -40,5 +40,5 @@ interface ExtensionInterface
332
343
* @return string|false
333
344
*/
334
345
- public function getXsdValidationBasePath();
335
346
+ public function getXsdValidationBasePath(): string|false;
336
-
347
+
337
348
/**
338
349
@@ -49,4 +49,4 @@ interface ExtensionInterface
339
350
* @return string
@@ -398,7 +409,7 @@ index 3dbe0a8420..b4179c785c 100644
398
409
*/
399
410
- abstract protected function loadResourceForBlockName(string $cacheKey, FormView $view, string $blockName);
400
411
+ abstract protected function loadResourceForBlockName(string $cacheKey, FormView $view, string $blockName): bool;
401
-
412
+
402
413
/**
403
414
diff --git a/src/Symfony/Component/Form/AbstractType.php b/src/Symfony/Component/Form/AbstractType.php
404
415
index 3325b8bc27..1cc22a1dab 100644
@@ -427,7 +438,7 @@ index 8495905e17..1e53be60be 100644
427
438
*/
428
439
- public function transform(mixed $value);
429
440
+ public function transform(mixed $value): mixed;
430
-
441
+
431
442
/**
432
443
@@ -89,4 +89,4 @@ interface DataTransformerInterface
433
444
* @throws TransformationFailedException when the transformation fails
@@ -454,21 +465,21 @@ index 61e2c5f80d..4d6b335474 100644
454
465
*/
455
466
- public function guessType(string $class, string $property);
456
467
+ public function guessType(string $class, string $property): ?Guess\TypeGuess;
457
-
468
+
458
469
/**
459
470
@@ -29,5 +29,5 @@ interface FormTypeGuesserInterface
460
471
* @return Guess\ValueGuess|null
461
472
*/
462
473
- public function guessRequired(string $class, string $property);
463
474
+ public function guessRequired(string $class, string $property): ?Guess\ValueGuess;
464
-
475
+
465
476
/**
466
477
@@ -36,5 +36,5 @@ interface FormTypeGuesserInterface
467
478
* @return Guess\ValueGuess|null
468
479
*/
469
480
- public function guessMaxLength(string $class, string $property);
470
481
+ public function guessMaxLength(string $class, string $property): ?Guess\ValueGuess;
471
-
482
+
472
483
/**
473
484
@@ -50,4 +50,4 @@ interface FormTypeGuesserInterface
474
485
* @return Guess\ValueGuess|null
@@ -485,7 +496,7 @@ index 2b9066a511..1c9e9f5a26 100644
485
496
*/
486
497
- public function getBlockPrefix();
487
498
+ public function getBlockPrefix(): string;
488
-
499
+
489
500
/**
490
501
@@ -84,4 +84,4 @@ interface FormTypeInterface
491
502
* @return string|null
@@ -572,24 +583,24 @@ index 19ff0db181..f0f4a5829f 100644
572
583
*/
573
584
- public function getLogs(Request $request = null);
574
585
+ public function getLogs(Request $request = null): array;
575
-
586
+
576
587
/**
577
588
@@ -37,5 +37,5 @@ interface DebugLoggerInterface
578
589
* @return int
579
590
*/
580
591
- public function countErrors(Request $request = null);
581
592
+ public function countErrors(Request $request = null): int;
582
-
593
+
583
594
/**
584
595
diff --git a/src/Symfony/Component/Messenger/Envelope.php b/src/Symfony/Component/Messenger/Envelope.php
585
596
index bb1194ad1b..bd7fc440ff 100644
586
597
--- a/src/Symfony/Component/Messenger/Envelope.php
587
598
+++ b/src/Symfony/Component/Messenger/Envelope.php
588
599
@@ -13,4 +13,5 @@ namespace Symfony\Component\Messenger;
589
-
600
+
590
601
use Symfony\Component\Messenger\Stamp\StampInterface;
591
602
+ use Symfony\Component\Messenger\Stamp\StampInterface as TStamp;
592
-
603
+
593
604
/**
594
605
@@ -101,5 +102,5 @@ final class Envelope
595
606
* @return TStamp|null
@@ -646,35 +657,35 @@ index fbb37d9f94..522e0487a9 100644
646
657
*/
647
658
- public function getLength();
648
659
+ public function getLength(): int;
649
-
660
+
650
661
/**
651
662
@@ -43,5 +43,5 @@ interface PropertyPathInterface extends \Traversable
652
663
* @return self|null
653
664
*/
654
665
- public function getParent();
655
666
+ public function getParent(): ?\Symfony\Component\PropertyAccess\PropertyPathInterface;
656
-
667
+
657
668
/**
658
669
@@ -50,5 +50,5 @@ interface PropertyPathInterface extends \Traversable
659
670
* @return list<string>
660
671
*/
661
672
- public function getElements();
662
673
+ public function getElements(): array;
663
-
674
+
664
675
/**
665
676
@@ -61,5 +61,5 @@ interface PropertyPathInterface extends \Traversable
666
677
* @throws Exception\OutOfBoundsException If the offset is invalid
667
678
*/
668
679
- public function getElement(int $index);
669
680
+ public function getElement(int $index): string;
670
-
681
+
671
682
/**
672
683
@@ -72,5 +72,5 @@ interface PropertyPathInterface extends \Traversable
673
684
* @throws Exception\OutOfBoundsException If the offset is invalid
674
685
*/
675
686
- public function isProperty(int $index);
676
687
+ public function isProperty(int $index): bool;
677
-
688
+
678
689
/**
679
690
@@ -83,4 +83,4 @@ interface PropertyPathInterface extends \Traversable
680
691
* @throws Exception\OutOfBoundsException If the offset is invalid
@@ -691,7 +702,7 @@ index f9ee787130..61f8b6d5be 100644
691
702
*/
692
703
- public function isReadable(string $class, string $property, array $context = []);
693
704
+ public function isReadable(string $class, string $property, array $context = []): ?bool;
694
-
705
+
695
706
/**
696
707
@@ -31,4 +31,4 @@ interface PropertyAccessExtractorInterface
697
708
* @return bool|null
@@ -760,7 +771,7 @@ index eda4730004..00cfc5b9c7 100644
760
771
*/
761
772
- public function loadTokenBySeries(string $series);
762
773
+ public function loadTokenBySeries(string $series): PersistentTokenInterface;
763
-
774
+
764
775
/**
765
776
diff --git a/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php b/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php
766
777
index 7e401c3ff3..6b446ff376 100644
@@ -792,14 +803,14 @@ index ec90d413fa..9f1401aa91 100644
792
803
*/
793
804
- public function refreshUser(UserInterface $user);
794
805
+ public function refreshUser(UserInterface $user): UserInterface;
795
-
806
+
796
807
/**
797
808
@@ -52,5 +52,5 @@ interface UserProviderInterface
798
809
* @return bool
799
810
*/
800
811
- public function supportsClass(string $class);
801
812
+ public function supportsClass(string $class): bool;
802
-
813
+
803
814
/**
804
815
diff --git a/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php b/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php
805
816
index 91271d14a3..100c2fb549 100644
@@ -841,7 +852,7 @@ index 84a84ad1f3..6f66b6d32a 100644
841
852
*/
842
853
- public function decode(string $data, string $format, array $context = []);
843
854
+ public function decode(string $data, string $format, array $context = []): mixed;
844
-
855
+
845
856
/**
846
857
@@ -44,4 +44,4 @@ interface DecoderInterface
847
858
* @return bool
@@ -904,14 +915,14 @@ index 3e1e7edc8e..e025b2bc4a 100644
904
915
*/
905
916
- abstract protected function extractAttributes(object $object, string $format = null, array $context = []);
906
917
+ abstract protected function extractAttributes(object $object, string $format = null, array $context = []): array;
907
-
918
+
908
919
/**
909
920
@@ -346,10 +346,10 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
910
921
* @return mixed
911
922
*/
912
923
- abstract protected function getAttributeValue(object $object, string $attribute, string $format = null, array $context = []);
913
924
+ abstract protected function getAttributeValue(object $object, string $attribute, string $format = null, array $context = []): mixed;
914
-
925
+
915
926
/**
916
927
* {@inheritdoc}
917
928
*/
@@ -935,7 +946,7 @@ index 5e94400b80..726d89cbb1 100644
935
946
*/
936
947
- public function denormalize(mixed $data, string $type, string $format = null, array $context = []);
937
948
+ public function denormalize(mixed $data, string $type, string $format = null, array $context = []): mixed;
938
-
949
+
939
950
/**
940
951
@@ -56,4 +56,4 @@ interface DenormalizerInterface
941
952
* @return bool
@@ -952,7 +963,7 @@ index 30eeafb47b..a7a60ad2f2 100644
952
963
*/
953
964
- public function normalize(mixed $object, string $format = null, array $context = []);
954
965
+ public function normalize(mixed $object, string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null;
955
-
966
+
956
967
/**
957
968
@@ -47,4 +47,4 @@ interface NormalizerInterface
958
969
* @return bool
@@ -969,7 +980,7 @@ index 5dade65db5..db0d0a00ea 100644
969
980
*/
970
981
- public function getName();
971
982
+ public function getName(): string;
972
-
983
+
973
984
/**
974
985
diff --git a/src/Symfony/Component/Translation/Extractor/AbstractFileExtractor.php b/src/Symfony/Component/Translation/Extractor/AbstractFileExtractor.php
975
986
index 4c088b94f9..86107a636d 100644
@@ -980,7 +991,7 @@ index 4c088b94f9..86107a636d 100644
980
991
*/
981
992
- abstract protected function canBeExtracted(string $file);
982
993
+ abstract protected function canBeExtracted(string $file): bool;
983
-
994
+
984
995
/**
985
996
* @return iterable
986
997
*/
@@ -1019,3 +1030,35 @@ index d6dcdf178f..0ab8d9c10e 100644
1019
1030
+ public function getTargets(): string|array
1020
1031
{
1021
1032
return self::PROPERTY_CONSTRAINT;
1033
+ diff --git a/src/Symfony/Component/Workflow/Event/Event.php b/src/Symfony/Component/Workflow/Event/Event.php
1034
+ index cd7fab7896..b340eba38e 100644
1035
+ --- a/src/Symfony/Component/Workflow/Event/Event.php
1036
+ +++ b/src/Symfony/Component/Workflow/Event/Event.php
1037
+ @@ -42,5 +42,5 @@ class Event extends BaseEvent
1038
+ * @return Marking
1039
+ */
1040
+ - public function getMarking()
1041
+ + public function getMarking(): Marking
1042
+ {
1043
+ return $this->marking;
1044
+ @@ -50,5 +50,5 @@ class Event extends BaseEvent
1045
+ * @return object
1046
+ */
1047
+ - public function getSubject()
1048
+ + public function getSubject(): object
1049
+ {
1050
+ return $this->subject;
1051
+ @@ -58,5 +58,5 @@ class Event extends BaseEvent
1052
+ * @return Transition|null
1053
+ */
1054
+ - public function getTransition()
1055
+ + public function getTransition(): ?Transition
1056
+ {
1057
+ return $this->transition;
1058
+ @@ -71,5 +71,5 @@ class Event extends BaseEvent
1059
+ * @return string
1060
+ */
1061
+ - public function getWorkflowName()
1062
+ + public function getWorkflowName(): string
1063
+ {
1064
+ return $this->workflow->getName();
0 commit comments