Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6644111

Browse files
Update expected-missing-return-types
1 parent adc8a55 commit 6644111

File tree

2 files changed

+32
-20
lines changed

2 files changed

+32
-20
lines changed

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

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ head=$(sed '/^diff /Q' .github/expected-missing-return-types.diff)
66
(echo "$head" && echo && git diff -U2 composer.json src/) > .github/expected-missing-return-types.diff
77

88
diff --git a/composer.json b/composer.json
9-
index 1bc576b112..589ef8c260 100644
9+
index 978743d34d..1f185f682c 100644
1010
--- a/composer.json
1111
+++ b/composer.json
12-
@@ -175,5 +175,5 @@
12+
@@ -180,5 +180,5 @@
1313
],
1414
"exclude-from-classmap": [
1515
- "**/Tests/"
@@ -144,7 +144,7 @@ index 6b1c6c5fbe..bb80ed461e 100644
144144
+ public function isFresh(ResourceInterface $resource, int $timestamp): bool;
145145
}
146146
diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php
147-
index b582435f7d..3d5f064773 100644
147+
index 09234f5eb5..24d995ad6d 100644
148148
--- a/src/Symfony/Component/Console/Application.php
149149
+++ b/src/Symfony/Component/Console/Application.php
150150
@@ -218,5 +218,5 @@ class Application implements ResetInterface
@@ -197,7 +197,7 @@ index b582435f7d..3d5f064773 100644
197197
{
198198
foreach ($command->getHelperSet() as $helper) {
199199
diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php
200-
index d6354b4ab1..b267917312 100644
200+
index e69bae0982..3390628d0d 100644
201201
--- a/src/Symfony/Component/Console/Command/Command.php
202202
+++ b/src/Symfony/Component/Console/Command/Command.php
203203
@@ -171,5 +171,5 @@ class Command
@@ -250,10 +250,10 @@ index 024da1884e..943790e875 100644
250250

251251
/**
252252
diff --git a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
253-
index 1acec50de5..904e67a47b 100644
253+
index e9fa5a6808..016e9d893a 100644
254254
--- a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
255255
+++ b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
256-
@@ -70,5 +70,5 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
256+
@@ -71,5 +71,5 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
257257
* @return mixed
258258
*/
259259
- protected function processValue(mixed $value, bool $isRoot = false)
@@ -372,7 +372,7 @@ index 479aeef880..272954c082 100644
372372
+ public function getFunctions(): array;
373373
}
374374
diff --git a/src/Symfony/Component/Form/AbstractExtension.php b/src/Symfony/Component/Form/AbstractExtension.php
375-
index 79d61e8bc0..7f34d95d84 100644
375+
index 5a077a42a6..62a234b116 100644
376376
--- a/src/Symfony/Component/Form/AbstractExtension.php
377377
+++ b/src/Symfony/Component/Form/AbstractExtension.php
378378
@@ -114,5 +114,5 @@ abstract class AbstractExtension implements FormExtensionInterface
@@ -514,10 +514,10 @@ index 2f442cb536..d98909cfae 100644
514514
+ public function warmUp(string $cacheDir): array;
515515
}
516516
diff --git a/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
517-
index 3a3be3af49..971560c07b 100644
517+
index 1289cf0ea9..dabeec97ee 100644
518518
--- a/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
519519
+++ b/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
520-
@@ -59,5 +59,5 @@ abstract class DataCollector implements DataCollectorInterface
520+
@@ -58,5 +58,5 @@ abstract class DataCollector implements DataCollectorInterface
521521
* @return callable[] The casters to add to the cloner
522522
*/
523523
- protected function getCasters()
@@ -535,7 +535,7 @@ index 1cb865fd66..f6f4efe7a7 100644
535535
+ public function getName(): string;
536536
}
537537
diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
538-
index 8e7b80a909..d757429d36 100644
538+
index eeec55593f..c12df944fc 100644
539539
--- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
540540
+++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
541541
@@ -448,5 +448,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
@@ -546,7 +546,7 @@ index 8e7b80a909..d757429d36 100644
546546
{
547547
if ($this->surrogate) {
548548
diff --git a/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php b/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php
549-
index f4773eb62a..0ba648b57f 100644
549+
index fc70d8970d..9dde6d1f93 100644
550550
--- a/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php
551551
+++ b/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php
552552
@@ -61,5 +61,5 @@ class HttpKernelBrowser extends AbstractBrowser
@@ -665,6 +665,17 @@ index fbb37d9f94..522e0487a9 100644
665665
- public function isIndex(int $index);
666666
+ public function isIndex(int $index): bool;
667667
}
668+
diff --git a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php
669+
index cfffdb2f71..3e2261898a 100644
670+
--- a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php
671+
+++ b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php
672+
@@ -725,5 +725,5 @@ class PropertyAccessorTest extends TestCase
673+
* @return mixed
674+
*/
675+
- public function getFoo()
676+
+ public function getFoo(): mixed
677+
{
678+
return $this->foo;
668679
diff --git a/src/Symfony/Component/PropertyInfo/PropertyAccessExtractorInterface.php b/src/Symfony/Component/PropertyInfo/PropertyAccessExtractorInterface.php
669680
index f9ee787130..61f8b6d5be 100644
670681
--- a/src/Symfony/Component/PropertyInfo/PropertyAccessExtractorInterface.php
@@ -714,7 +725,7 @@ index 2dd0e5efbf..95e01d8955 100644
714725
{
715726
$name = str_replace('\\', '_', $class->name).'_'.$method->name;
716727
diff --git a/src/Symfony/Component/Routing/Router.php b/src/Symfony/Component/Routing/Router.php
717-
index 83c10427a1..e113d4a194 100644
728+
index be653e4f00..e46300d474 100644
718729
--- a/src/Symfony/Component/Routing/Router.php
719730
+++ b/src/Symfony/Component/Routing/Router.php
720731
@@ -178,5 +178,5 @@ class Router implements RouterInterface, RequestMatcherInterface
@@ -756,7 +767,7 @@ index 7e401c3ff3..6b446ff376 100644
756767
+ public function vote(TokenInterface $token, mixed $subject, array $attributes): int;
757768
}
758769
diff --git a/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php b/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php
759-
index 298bc78cd9..3ef4176dd8 100644
770+
index 9e2b02b603..c6a753f1f7 100644
760771
--- a/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php
761772
+++ b/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php
762773
@@ -89,5 +89,5 @@ class AuthenticationException extends RuntimeException
@@ -795,7 +806,7 @@ index 91271d14a3..100c2fb549 100644
795806
+ public function start(Request $request, AuthenticationException $authException = null): Response;
796807
}
797808
diff --git a/src/Symfony/Component/Security/Http/Firewall.php b/src/Symfony/Component/Security/Http/Firewall.php
798-
index 0c313f8f09..acfc9f4b88 100644
809+
index 546b77d22f..24038d4b94 100644
799810
--- a/src/Symfony/Component/Security/Http/Firewall.php
800811
+++ b/src/Symfony/Component/Security/Http/Firewall.php
801812
@@ -106,5 +106,5 @@ class Firewall implements EventSubscriberInterface
@@ -833,7 +844,7 @@ index 84a84ad1f3..6f66b6d32a 100644
833844
+ public function supportsDecoding(string $format): bool;
834845
}
835846
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
836-
index b0a1f3218b..893fe59e2f 100644
847+
index 7f86ed8d78..cf084423ec 100644
837848
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
838849
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
839850
@@ -223,5 +223,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
@@ -971,31 +982,31 @@ index 4c088b94f9..86107a636d 100644
971982
+ abstract protected function extractFromDirectory(string|array $resource): iterable;
972983
}
973984
diff --git a/src/Symfony/Component/Validator/Constraint.php b/src/Symfony/Component/Validator/Constraint.php
974-
index d6dcdf178f..0ab8d9c10e 100644
985+
index 46432f2f4c..47ac39d5e3 100644
975986
--- a/src/Symfony/Component/Validator/Constraint.php
976987
+++ b/src/Symfony/Component/Validator/Constraint.php
977-
@@ -239,5 +239,5 @@ abstract class Constraint
988+
@@ -243,5 +243,5 @@ abstract class Constraint
978989
* @see __construct()
979990
*/
980991
- public function getDefaultOption()
981992
+ public function getDefaultOption(): ?string
982993
{
983994
return null;
984-
@@ -253,5 +253,5 @@ abstract class Constraint
995+
@@ -257,5 +257,5 @@ abstract class Constraint
985996
* @see __construct()
986997
*/
987998
- public function getRequiredOptions()
988999
+ public function getRequiredOptions(): array
9891000
{
9901001
return [];
991-
@@ -267,5 +267,5 @@ abstract class Constraint
1002+
@@ -271,5 +271,5 @@ abstract class Constraint
9921003
* @return string
9931004
*/
9941005
- public function validatedBy()
9951006
+ public function validatedBy(): string
9961007
{
9971008
return static::class.'Validator';
998-
@@ -281,5 +281,5 @@ abstract class Constraint
1009+
@@ -285,5 +285,5 @@ abstract class Constraint
9991010
* @return string|string[] One or more constant values
10001011
*/
10011012
- public function getTargets()

.github/patch-types.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/Preload/'):
3232
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/Prototype/BadClasses/MissingParent.php'):
3333
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/'):
34+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/TestServiceSubscriberIntersectionWithTrait.php'):
3435
case false !== strpos($file, '/src/Symfony/Component/ErrorHandler/Tests/Fixtures/'):
3536
case false !== strpos($file, '/src/Symfony/Component/Form/Tests/Fixtures/Answer.php'):
3637
case false !== strpos($file, '/src/Symfony/Component/Form/Tests/Fixtures/Number.php'):

0 commit comments

Comments
 (0)