@@ -7,6 +7,16 @@ git checkout src/Symfony/Contracts/Service/ResetInterface.php
7
7
(echo "$head" && echo && git diff -U2 src/ | grep '^index ' -v) > .github/expected-missing-return-types.diff
8
8
git checkout composer.json src/
9
9
10
+ diff --git a/src/Symfony/Bridge/Twig/Test/Traits/RuntimeLoaderProvider.php b/src/Symfony/Bridge/Twig/Test/Traits/RuntimeLoaderProvider.php
11
+ --- a/src/Symfony/Bridge/Twig/Test/Traits/RuntimeLoaderProvider.php
12
+ +++ b/src/Symfony/Bridge/Twig/Test/Traits/RuntimeLoaderProvider.php
13
+ @@ -21,5 +21,5 @@ trait RuntimeLoaderProvider
14
+ * @return void
15
+ */
16
+ - protected function registerTwigRuntimeLoader(Environment $environment, FormRenderer $renderer)
17
+ + protected function registerTwigRuntimeLoader(Environment $environment, FormRenderer $renderer): void
18
+ {
19
+ $loader = $this->createMock(RuntimeLoaderInterface::class);
10
20
diff --git a/src/Symfony/Component/BrowserKit/AbstractBrowser.php b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
11
21
--- a/src/Symfony/Component/BrowserKit/AbstractBrowser.php
12
22
+++ b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
@@ -48,7 +58,7 @@ diff --git a/src/Symfony/Component/BrowserKit/AbstractBrowser.php b/src/Symfony/
48
58
diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php
49
59
--- a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php
50
60
+++ b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php
51
- @@ -94 ,5 +94 ,5 @@ abstract class NodeDefinition implements NodeParentInterface
61
+ @@ -115 ,5 +115 ,5 @@ abstract class NodeDefinition implements NodeParentInterface
52
62
* @return NodeParentInterface|NodeBuilder|self|ArrayNodeDefinition|VariableNodeDefinition
53
63
*/
54
64
- public function end(): NodeParentInterface
@@ -58,21 +68,21 @@ diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php
58
68
diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php
59
69
--- a/src/Symfony/Component/Console/Command/Command.php
60
70
+++ b/src/Symfony/Component/Console/Command/Command.php
61
- @@ -163 ,5 +163 ,5 @@ class Command
71
+ @@ -201 ,5 +201 ,5 @@ class Command implements SignalableCommandInterface
62
72
* @return void
63
73
*/
64
74
- protected function configure()
65
75
+ protected function configure(): void
66
76
{
67
77
}
68
- @@ -195 ,5 +195 ,5 @@ class Command
78
+ @@ -233 ,5 +233 ,5 @@ class Command implements SignalableCommandInterface
69
79
* @return void
70
80
*/
71
81
- protected function interact(InputInterface $input, OutputInterface $output)
72
82
+ protected function interact(InputInterface $input, OutputInterface $output): void
73
83
{
74
84
}
75
- @@ -211 ,5 +211 ,5 @@ class Command
85
+ @@ -249 ,5 +249 ,5 @@ class Command implements SignalableCommandInterface
76
86
* @return void
77
87
*/
78
88
- protected function initialize(InputInterface $input, OutputInterface $output)
@@ -474,14 +484,14 @@ diff --git a/src/Symfony/Component/HttpKernel/KernelInterface.php b/src/Symfony/
474
484
diff --git a/src/Symfony/Component/Routing/Loader/AttributeClassLoader.php b/src/Symfony/Component/Routing/Loader/AttributeClassLoader.php
475
485
--- a/src/Symfony/Component/Routing/Loader/AttributeClassLoader.php
476
486
+++ b/src/Symfony/Component/Routing/Loader/AttributeClassLoader.php
477
- @@ -253 ,5 +253 ,5 @@ abstract class AttributeClassLoader implements LoaderInterface
487
+ @@ -277 ,5 +277 ,5 @@ abstract class AttributeClassLoader implements LoaderInterface
478
488
* @return string
479
489
*/
480
490
- protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method)
481
491
+ protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method): string
482
492
{
483
493
$name = str_replace('\\', '_', $class->name).'_'.$method->name;
484
- @@ -355 ,5 +355 ,5 @@ abstract class AttributeClassLoader implements LoaderInterface
494
+ @@ -379 ,5 +379 ,5 @@ abstract class AttributeClassLoader implements LoaderInterface
485
495
* @return void
486
496
*/
487
497
- abstract protected function configureRoute(Route $route, \ReflectionClass $class, \ReflectionMethod $method, object $attr);
@@ -578,7 +588,7 @@ diff --git a/src/Symfony/Component/Translation/Extractor/ExtractorInterface.php
578
588
diff --git a/src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithPhpDoc.php b/src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithPhpDoc.php
579
589
--- a/src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithPhpDoc.php
580
590
+++ b/src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithPhpDoc.php
581
- @@ -15 ,5 +15 ,5 @@ final class DummyWithPhpDoc
591
+ @@ -50 ,5 +50 ,5 @@ final class DummyWithPhpDoc
582
592
* @return Dummy
583
593
*/
584
594
- public function getNextDummy(mixed $dummy): mixed
@@ -610,6 +620,23 @@ diff --git a/src/Symfony/Component/VarDumper/Dumper/DataDumperInterface.php b/sr
610
620
- public function dump(Data $data);
611
621
+ public function dump(Data $data): ?string;
612
622
}
623
+ diff --git a/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php b/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php
624
+ --- a/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php
625
+ +++ b/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php
626
+ @@ -49,5 +49,5 @@ trait VarDumperTestTrait
627
+ * @return void
628
+ */
629
+ - public function assertDumpEquals(mixed $expected, mixed $data, int $filter = 0, string $message = '')
630
+ + public function assertDumpEquals(mixed $expected, mixed $data, int $filter = 0, string $message = ''): void
631
+ {
632
+ $this->assertSame($this->prepareExpectation($expected, $filter), $this->getDump($data, null, $filter), $message);
633
+ @@ -57,5 +57,5 @@ trait VarDumperTestTrait
634
+ * @return void
635
+ */
636
+ - public function assertDumpMatchesFormat(mixed $expected, mixed $data, int $filter = 0, string $message = '')
637
+ + public function assertDumpMatchesFormat(mixed $expected, mixed $data, int $filter = 0, string $message = ''): void
638
+ {
639
+ $this->assertStringMatchesFormat($this->prepareExpectation($expected, $filter), $this->getDump($data, null, $filter), $message);
613
640
diff --git a/src/Symfony/Contracts/Translation/LocaleAwareInterface.php b/src/Symfony/Contracts/Translation/LocaleAwareInterface.php
614
641
--- a/src/Symfony/Contracts/Translation/LocaleAwareInterface.php
615
642
+++ b/src/Symfony/Contracts/Translation/LocaleAwareInterface.php
0 commit comments