Skip to content

Commit 7a481c5

Browse files
Fix .github/expected-missing-return-types.diff
1 parent 186a94d commit 7a481c5

File tree

1 file changed

+29
-39
lines changed

1 file changed

+29
-39
lines changed

.github/expected-missing-return-types.diff

Lines changed: 29 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -20,69 +20,59 @@ diff --git a/src/Symfony/Bridge/Twig/Test/Traits/RuntimeLoaderProvider.php b/src
2020
diff --git a/src/Symfony/Component/BrowserKit/AbstractBrowser.php b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
2121
--- a/src/Symfony/Component/BrowserKit/AbstractBrowser.php
2222
+++ b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
23-
@@ -420,5 +420,5 @@ abstract class AbstractBrowser
23+
@@ -428,5 +428,5 @@ abstract class AbstractBrowser
2424
* @throws \RuntimeException When processing returns exit code
2525
*/
2626
- protected function doRequestInProcess(object $request)
2727
+ protected function doRequestInProcess(object $request): object
2828
{
2929
$deprecationsFile = tempnam(sys_get_temp_dir(), 'deprec');
30-
@@ -457,5 +457,5 @@ abstract class AbstractBrowser
30+
@@ -465,5 +465,5 @@ abstract class AbstractBrowser
3131
* @psalm-return TResponse
3232
*/
3333
- abstract protected function doRequest(object $request);
3434
+ abstract protected function doRequest(object $request): object;
3535

3636
/**
37-
@@ -470,5 +470,5 @@ abstract class AbstractBrowser
37+
@@ -478,5 +478,5 @@ abstract class AbstractBrowser
3838
* @throws LogicException When this abstract class is not implemented
3939
*/
4040
- protected function getScript(object $request)
4141
+ protected function getScript(object $request): string
4242
{
4343
throw new LogicException('To insulate requests, you need to override the getScript() method.');
44-
@@ -482,5 +482,5 @@ abstract class AbstractBrowser
44+
@@ -490,5 +490,5 @@ abstract class AbstractBrowser
4545
* @psalm-return TRequest
4646
*/
4747
- protected function filterRequest(Request $request)
4848
+ protected function filterRequest(Request $request): object
4949
{
5050
return $request;
51-
@@ -494,5 +494,5 @@ abstract class AbstractBrowser
51+
@@ -502,5 +502,5 @@ abstract class AbstractBrowser
5252
* @return Response
5353
*/
5454
- protected function filterResponse(object $response)
5555
+ protected function filterResponse(object $response): Response
5656
{
5757
return $response;
58-
diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php
59-
--- a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php
60-
+++ b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php
61-
@@ -115,5 +115,5 @@ abstract class NodeDefinition implements NodeParentInterface
62-
* @return NodeParentInterface|NodeBuilder|self|ArrayNodeDefinition|VariableNodeDefinition
63-
*/
64-
- public function end(): NodeParentInterface
65-
+ public function end(): NodeParentInterface|NodeBuilder|\Symfony\Component\Config\Definition\Builder\NodeDefinition|ArrayNodeDefinition|VariableNodeDefinition
66-
{
67-
return $this->parent;
6858
diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php
6959
--- a/src/Symfony/Component/Console/Command/Command.php
7060
+++ b/src/Symfony/Component/Console/Command/Command.php
71-
@@ -201,5 +201,5 @@ class Command implements SignalableCommandInterface
61+
@@ -214,5 +214,5 @@ class Command implements SignalableCommandInterface
7262
* @return void
7363
*/
7464
- protected function configure()
7565
+ protected function configure(): void
7666
{
7767
}
78-
@@ -233,5 +233,5 @@ class Command implements SignalableCommandInterface
68+
@@ -246,5 +246,5 @@ class Command implements SignalableCommandInterface
7969
* @return void
8070
*/
8171
- protected function interact(InputInterface $input, OutputInterface $output)
8272
+ protected function interact(InputInterface $input, OutputInterface $output): void
8373
{
8474
}
85-
@@ -249,5 +249,5 @@ class Command implements SignalableCommandInterface
75+
@@ -262,5 +262,5 @@ class Command implements SignalableCommandInterface
8676
* @return void
8777
*/
8878
- protected function initialize(InputInterface $input, OutputInterface $output)
@@ -243,42 +233,42 @@ diff --git a/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php b/s
243233
diff --git a/src/Symfony/Component/Form/AbstractType.php b/src/Symfony/Component/Form/AbstractType.php
244234
--- a/src/Symfony/Component/Form/AbstractType.php
245235
+++ b/src/Symfony/Component/Form/AbstractType.php
246-
@@ -24,5 +24,5 @@ abstract class AbstractType implements FormTypeInterface
236+
@@ -28,5 +28,5 @@ abstract class AbstractType implements FormTypeInterface
247237
* @return string|null
248238
*/
249239
- public function getParent()
250240
+ public function getParent(): ?string
251241
{
252242
return FormType::class;
253-
@@ -32,5 +32,5 @@ abstract class AbstractType implements FormTypeInterface
243+
@@ -36,5 +36,5 @@ abstract class AbstractType implements FormTypeInterface
254244
* @return void
255245
*/
256246
- public function configureOptions(OptionsResolver $resolver)
257247
+ public function configureOptions(OptionsResolver $resolver): void
258248
{
259249
}
260-
@@ -39,5 +39,5 @@ abstract class AbstractType implements FormTypeInterface
250+
@@ -45,5 +45,5 @@ abstract class AbstractType implements FormTypeInterface
261251
* @return void
262252
*/
263253
- public function buildForm(FormBuilderInterface $builder, array $options)
264254
+ public function buildForm(FormBuilderInterface $builder, array $options): void
265255
{
266256
}
267-
@@ -46,5 +46,5 @@ abstract class AbstractType implements FormTypeInterface
257+
@@ -55,5 +55,5 @@ abstract class AbstractType implements FormTypeInterface
268258
* @return void
269259
*/
270260
- public function buildView(FormView $view, FormInterface $form, array $options)
271261
+ public function buildView(FormView $view, FormInterface $form, array $options): void
272262
{
273263
}
274-
@@ -53,5 +53,5 @@ abstract class AbstractType implements FormTypeInterface
264+
@@ -65,5 +65,5 @@ abstract class AbstractType implements FormTypeInterface
275265
* @return void
276266
*/
277267
- public function finishView(FormView $view, FormInterface $form, array $options)
278268
+ public function finishView(FormView $view, FormInterface $form, array $options): void
279269
{
280270
}
281-
@@ -60,5 +60,5 @@ abstract class AbstractType implements FormTypeInterface
271+
@@ -72,5 +72,5 @@ abstract class AbstractType implements FormTypeInterface
282272
* @return string
283273
*/
284274
- public function getBlockPrefix()
@@ -288,42 +278,42 @@ diff --git a/src/Symfony/Component/Form/AbstractType.php b/src/Symfony/Component
288278
diff --git a/src/Symfony/Component/Form/FormTypeInterface.php b/src/Symfony/Component/Form/FormTypeInterface.php
289279
--- a/src/Symfony/Component/Form/FormTypeInterface.php
290280
+++ b/src/Symfony/Component/Form/FormTypeInterface.php
291-
@@ -27,5 +27,5 @@ interface FormTypeInterface
281+
@@ -29,5 +29,5 @@ interface FormTypeInterface
292282
* @return string|null
293283
*/
294284
- public function getParent();
295285
+ public function getParent(): ?string;
296286

297287
/**
298-
@@ -34,5 +34,5 @@ interface FormTypeInterface
288+
@@ -36,5 +36,5 @@ interface FormTypeInterface
299289
* @return void
300290
*/
301291
- public function configureOptions(OptionsResolver $resolver);
302292
+ public function configureOptions(OptionsResolver $resolver): void;
303293

304294
/**
305-
@@ -48,5 +48,5 @@ interface FormTypeInterface
295+
@@ -51,5 +51,5 @@ interface FormTypeInterface
306296
* @see FormTypeExtensionInterface::buildForm()
307297
*/
308298
- public function buildForm(FormBuilderInterface $builder, array $options);
309299
+ public function buildForm(FormBuilderInterface $builder, array $options): void;
310300

311301
/**
312-
@@ -66,5 +66,5 @@ interface FormTypeInterface
302+
@@ -71,5 +71,5 @@ interface FormTypeInterface
313303
* @see FormTypeExtensionInterface::buildView()
314304
*/
315305
- public function buildView(FormView $view, FormInterface $form, array $options);
316306
+ public function buildView(FormView $view, FormInterface $form, array $options): void;
317307

318308
/**
319-
@@ -85,5 +85,5 @@ interface FormTypeInterface
309+
@@ -92,5 +92,5 @@ interface FormTypeInterface
320310
* @see FormTypeExtensionInterface::finishView()
321311
*/
322312
- public function finishView(FormView $view, FormInterface $form, array $options);
323313
+ public function finishView(FormView $view, FormInterface $form, array $options): void;
324314

325315
/**
326-
@@ -95,4 +95,4 @@ interface FormTypeInterface
316+
@@ -102,4 +102,4 @@ interface FormTypeInterface
327317
* @return string
328318
*/
329319
- public function getBlockPrefix();
@@ -442,7 +432,7 @@ diff --git a/src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php b/src/S
442432
diff --git a/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
443433
--- a/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
444434
+++ b/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
445-
@@ -111,5 +111,5 @@ abstract class DataCollector implements DataCollectorInterface
435+
@@ -157,5 +157,5 @@ abstract class DataCollector implements DataCollectorInterface
446436
* @return void
447437
*/
448438
- public function reset()
@@ -508,7 +498,7 @@ diff --git a/src/Symfony/Component/Routing/Loader/AttributeClassLoader.php b/src
508498
+ protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method): string
509499
{
510500
$name = str_replace('\\', '_', $class->name).'_'.$method->name;
511-
@@ -379,5 +379,5 @@ abstract class AttributeClassLoader implements LoaderInterface
501+
@@ -380,5 +380,5 @@ abstract class AttributeClassLoader implements LoaderInterface
512502
* @return void
513503
*/
514504
- abstract protected function configureRoute(Route $route, \ReflectionClass $class, \ReflectionMethod $method, object $attr);
@@ -548,28 +538,28 @@ diff --git a/src/Symfony/Component/Security/Core/Authentication/RememberMe/Token
548538
diff --git a/src/Symfony/Component/Security/Http/Firewall.php b/src/Symfony/Component/Security/Http/Firewall.php
549539
--- a/src/Symfony/Component/Security/Http/Firewall.php
550540
+++ b/src/Symfony/Component/Security/Http/Firewall.php
551-
@@ -48,5 +48,5 @@ class Firewall implements EventSubscriberInterface
541+
@@ -49,5 +49,5 @@ class Firewall implements EventSubscriberInterface
552542
* @return void
553543
*/
554544
- public function onKernelRequest(RequestEvent $event)
555545
+ public function onKernelRequest(RequestEvent $event): void
556546
{
557547
if (!$event->isMainRequest()) {
558-
@@ -96,5 +96,5 @@ class Firewall implements EventSubscriberInterface
548+
@@ -97,5 +97,5 @@ class Firewall implements EventSubscriberInterface
559549
* @return void
560550
*/
561551
- public function onKernelFinishRequest(FinishRequestEvent $event)
562552
+ public function onKernelFinishRequest(FinishRequestEvent $event): void
563553
{
564554
$request = $event->getRequest();
565-
@@ -109,5 +109,5 @@ class Firewall implements EventSubscriberInterface
555+
@@ -110,5 +110,5 @@ class Firewall implements EventSubscriberInterface
566556
* @return array
567557
*/
568558
- public static function getSubscribedEvents()
569559
+ public static function getSubscribedEvents(): array
570560
{
571561
return [
572-
@@ -120,5 +120,5 @@ class Firewall implements EventSubscriberInterface
562+
@@ -121,5 +121,5 @@ class Firewall implements EventSubscriberInterface
573563
* @return void
574564
*/
575565
- protected function callListeners(RequestEvent $event, iterable $listeners)
@@ -579,7 +569,7 @@ diff --git a/src/Symfony/Component/Security/Http/Firewall.php b/src/Symfony/Comp
579569
diff --git a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php
580570
--- a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php
581571
+++ b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php
582-
@@ -820,5 +820,5 @@ XML;
572+
@@ -836,5 +836,5 @@ class XmlEncoderTest extends TestCase
583573
* @return Dummy
584574
*/
585575
- protected static function getObject(): object
@@ -640,14 +630,14 @@ diff --git a/src/Symfony/Component/VarDumper/Dumper/DataDumperInterface.php b/sr
640630
diff --git a/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php b/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php
641631
--- a/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php
642632
+++ b/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php
643-
@@ -49,5 +49,5 @@ trait VarDumperTestTrait
633+
@@ -51,5 +51,5 @@ trait VarDumperTestTrait
644634
* @return void
645635
*/
646636
- public function assertDumpEquals(mixed $expected, mixed $data, int $filter = 0, string $message = '')
647637
+ public function assertDumpEquals(mixed $expected, mixed $data, int $filter = 0, string $message = ''): void
648638
{
649639
$this->assertSame($this->prepareExpectation($expected, $filter), $this->getDump($data, null, $filter), $message);
650-
@@ -57,5 +57,5 @@ trait VarDumperTestTrait
640+
@@ -59,5 +59,5 @@ trait VarDumperTestTrait
651641
* @return void
652642
*/
653643
- public function assertDumpMatchesFormat(mixed $expected, mixed $data, int $filter = 0, string $message = '')

0 commit comments

Comments
 (0)