@@ -10,7 +10,7 @@ git checkout composer.json src/
10
8000
code>
10
diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php b/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php
11
11
--- a/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php
12
12
+++ b/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php
13
- @@ -52 ,5 +52 ,5 @@ abstract class AbstractLayoutTestCase extends FormLayoutTestCase
13
+ @@ -49 ,5 +49 ,5 @@ abstract class AbstractLayoutTestCase extends FormLayoutTestCase
14
14
* @return FormExtensionInterface[]
15
15
*/
16
16
- protected function getExtensions()
@@ -20,35 +20,21 @@ diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php
20
20
diff --git a/src/Symfony/Component/BrowserKit/AbstractBrowser.php b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
21
21
--- a/src/Symfony/Component/BrowserKit/AbstractBrowser.php
22
22
+++ b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
23
- @@ -407,5 +407,5 @@ abstract class AbstractBrowser
24
- * @throws \RuntimeException When processing returns exit code
25
- */
26
- - protected function doRequestInProcess(object $request)
27
- + protected function doRequestInProcess(object $request): object
28
- {
29
- $deprecationsFile = tempnam(sys_get_temp_dir(), 'deprec');
30
- @@ -440,5 +440,5 @@ abstract class AbstractBrowser
31
- * @return object
32
- */
33
- - abstract protected function doRequest(object $request);
34
- + abstract protected function doRequest(object $request): object;
35
-
36
- /**
37
- @@ -451,5 +451,5 @@ abstract class AbstractBrowser
23
+ @@ -466,5 +466,5 @@ abstract class AbstractBrowser
38
24
* @throws LogicException When this abstract class is not implemented
39
25
*/
40
26
- protected function getScript(object $request)
41
27
+ protected function getScript(object $request): string
42
28
{
43
29
throw new LogicException('To insulate requests, you need to override the getScript() method.');
44
- @@ -461 ,5 +461 ,5 @@ abstract class AbstractBrowser
45
- * @return object
30
+ @@ -478 ,5 +478 ,5 @@ abstract class AbstractBrowser
31
+ * @psalm- return TRequest
46
32
*/
47
33
- protected function filterRequest(Request $request)
48
34
+ protected function filterRequest(Request $request): object
49
35
{
50
36
return $request;
51
- @@ -471 ,5 +471 ,5 @@ abstract class AbstractBrowser
37
+ @@ -490 ,5 +490 ,5 @@ abstract class AbstractBrowser
52
38
* @return Response
53
39
*/
54
40
- protected function filterResponse(object $response)
@@ -408,7 +394,7 @@ diff --git a/src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php b/src/S
408
394
diff --git a/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
409
395
--- a/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
410
396
+++ b/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
411
- @@ -113 ,5 +113 ,5 @@ abstract class DataCollector implements DataCollectorInterface
397
+ @@ -111 ,5 +111 ,5 @@ abstract class DataCollector implements DataCollectorInterface
412
398
* @return void
413
399
*/
414
400
- public function reset()
@@ -542,6 +528,16 @@ diff --git a/src/Symfony/Component/Security/Http/Firewall.php b/src/Symfony/Comp
542
528
+ protected function callListeners(RequestEvent $event, iterable $listeners): void
543
529
{
544
530
foreach ($listeners as $listener) {
531
+ diff --git a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php
532
+ --- a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php
533
+ +++ b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php
534
+ @@ -820,5 +820,5 @@ XML;
535
+ * @return Dummy
536
+ */
537
+ - protected static function getObject(): object
538
+ + protected static function getObject(): Dummy
539
+ {
540
+ $obj = new Dummy();
545
541
diff --git a/src/Symfony/Component/Translation/Extractor/ExtractorInterface.php b/src/Symfony/Component/Translation/Extractor/ExtractorInterface.php
546
542
--- a/src/Symfony/Component/Translation/Extractor/ExtractorInterface.php
547
543
+++ b/src/Symfony/Component/Translation/Extractor/ExtractorInterface.php
@@ -558,6 +554,16 @@ diff --git a/src/Symfony/Component/Translation/Extractor/ExtractorInterface.php
558
554
- public function setPrefix(string $prefix);
559
555
+ public function setPrefix(string $prefix): void;
560
556
}
557
+ diff --git a/src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithPhpDoc.php b/src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithPhpDoc.php
558
+ --- a/src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithPhpDoc.php
559
+ +++ b/src/Symfony/Component/TypeInfo/Tests/Fixtures/DummyWithPhpDoc.php
560
+ @@ -15,5 +15,5 @@ final class DummyWithPhpDoc
561
+ * @return Dummy
562
+ */
563
+ - public function getNextDummy(mixed $dummy): mixed
564
+ + public function getNextDummy(mixed $dummy): Dummy
565
+ {
566
+ throw new \BadMethodCallException(sprintf('"%s" is not implemented.', __METHOD__));
561
567
diff --git a/src/Symfony/Component/Validator/ConstraintValidatorInterface.php b/src/Symfony/Component/Validator/ConstraintValidatorInterface.php
562
568
--- a/src/Symfony/Component/Validator/ConstraintValidatorInterface.php
563
569
+++ b/src/Symfony/Component/Validator/ConstraintValidatorInterface.php
@@ -588,14 +594,14 @@ diff --git a/src/Symfony/Component/VarExporter/Tests/ProxyHelperTest.php b/src/S
588
594
+++ b/src/Symfony/Component/VarExporter/Tests/ProxyHelperTest.php
589
595
@@ -172,5 +172,5 @@ class ProxyHelperTest extends TestCase
590
596
{
591
- yield 'not type hinted __unserialize method' => [new class() {
597
+ yield 'not type hinted __unserialize method' => [new class {
592
598
- public function __unserialize($array)
593
599
+ public function __unserialize($array): void
594
600
{
595
601
}
596
602
@@ -192,5 +192,5 @@ class ProxyHelperTest extends TestCase
597
603
598
- yield 'type hinted __unserialize method' => [new class() {
604
+ yield 'type hinted __unserialize method' => [new class {
599
605
- public function __unserialize(array $array)
600
606
+ public function __unserialize(array $array): void
601
607
{
0 commit comments