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

Skip to content

Commit 41697e7

Browse files
Merge branch '6.0' into 6.1
* 6.0: Update expected-missing-return-types
2 parents a4d6d4d + 6644111 commit 41697e7

File tree

2 files changed

+61
-49
lines changed

2 files changed

+61
-49
lines changed

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

Lines changed: 30 additions & 19 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 1750d55ee2..c18494167a 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/"
@@ -155,7 +155,7 @@ index 6b1c6c5fbe..bb80ed461e 100644
155155
+ public function isFresh(ResourceInterface $resource, int $timestamp): bool;
156156
}
157157
diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php
158-
index 0ed5649b8a..6c814bf82c 100644
158+
index 09234f5eb5..24d995ad6d 100644
159159
--- a/src/Symfony/Component/Console/Application.php
160160
+++ b/src/Symfony/Component/Console/Application.php
161161
@@ -218,5 +218,5 @@ class Application implements ResetInterface
@@ -208,7 +208,7 @@ index 0ed5649b8a..6c814bf82c 100644
208208
{
209209
foreach ($command->getHelperSet() as $helper) {
210210
diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php
211-
index 0bd3426c07..b38caf989e 100644
211+
index e69bae0982..3390628d0d 100644
212212
--- a/src/Symfony/Component/Console/Command/Command.php
213213
+++ b/src/Symfony/Component/Console/Command/Command.php
214214
@@ -171,5 +171,5 @@ class Command
@@ -261,7 +261,7 @@ index 024da1884e..943790e875 100644
261261

262262
/**
263263
diff --git a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
264-
index 326d8d4f5f..e62124c7af 100644
264+
index e9fa5a6808..016e9d893a 100644
265265
--- a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
266266
+++ b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
267267
@@ -71,5 +71,5 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
@@ -383,7 +383,7 @@ index 479aeef880..272954c082 100644
383383
+ public function getFunctions(): array;
384384
}
385385
diff --git a/src/Symfony/Component/Form/AbstractExtension.php b/src/Symfony/Component/Form/AbstractExtension.php
386-
index 79d61e8bc0..7f34d95d84 100644
386+
index 5a077a42a6..62a234b116 100644
387387
--- a/src/Symfony/Component/Form/AbstractExtension.php
388388
+++ b/src/Symfony/Component/Form/AbstractExtension.php
389389
@@ -114,5 +114,5 @@ abstract class AbstractExtension implements FormExtensionInterface
@@ -525,10 +525,10 @@ index 2f442cb536..d98909cfae 100644
525525
+ public function warmUp(string $cacheDir): array;
526526
}
527527
diff --git a/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
528-
index 3a3be3af49..971560c07b 100644
528+
index 1289cf0ea9..dabeec97ee 100644
529529
--- a/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
530530
+++ b/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php
531-
@@ -59,5 +59,5 @@ abstract class DataCollector implements DataCollectorInterface
531+
@@ -58,5 +58,5 @@ abstract class DataCollector implements DataCollectorInterface
532532
* @return callable[] The casters to add to the cloner
533533
*/
534534
- protected function getCasters()
@@ -546,7 +546,7 @@ index 1cb865fd66..f6f4efe7a7 100644
546546
+ public function getName(): string;
547547
}
548548
diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
549-
index cf0e243c6b..292b907ea8 100644
549+
index eeec55593f..c12df944fc 100644
550550
--- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
551551
+++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
552552
@@ -448,5 +448,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
@@ -557,7 +557,7 @@ index cf0e243c6b..292b907ea8 100644
557557
{
558558
$this->surrogate?->addSurrogateCapability($request);
559559
diff --git a/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php b/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php
560-
index 3ecc2c739c..d50834b6d9 100644
560+
index fc70d8970d..9dde6d1f93 100644
561561
--- a/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php
562562
+++ b/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php
563563
@@ -61,5 +61,5 @@ class HttpKernelBrowser extends AbstractBrowser
@@ -711,6 +711,17 @@ index fbb37d9f94..522e0487a9 100644
711711
- public function isIndex(int $index);
712712
+ public function isIndex(int $index): bool;
713713
}
714+
diff --git a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php
715+
index cfffdb2f71..3e2261898a 100644
716+
--- a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php
717+
+++ b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php
718+
@@ -725,5 +725,5 @@ class PropertyAccessorTest extends TestCase
719+
* @return mixed
720+
*/
721+
- public function getFoo()
722+
+ public function getFoo(): mixed
723+
{
724+
return $this->foo;
714725
diff --git a/src/Symfony/Component/PropertyInfo/PropertyAccessExtractorInterface.php b/src/Symfony/Component/PropertyInfo/PropertyAccessExtractorInterface.php
715726
index f9ee787130..61f8b6d5be 100644
716727
--- a/src/Symfony/Component/PropertyInfo/PropertyAccessExtractorInterface.php
@@ -760,7 +771,7 @@ index 2dd0e5efbf..95e01d8955 100644
760771
{
761772
$name = str_replace('\\', '_', $class->name).'_'.$method->name;
762773
diff --git a/src/Symfony/Component/Routing/Router.php b/src/Symfony/Component/Routing/Router.php
763-
index 83c10427a1..e113d4a194 100644
774+
index be653e4f00..e46300d474 100644
764775
--- a/src/Symfony/Component/Routing/Router.php
765776
+++ b/src/Symfony/Component/Routing/Router.php
766777
@@ -178,5 +178,5 @@ class Router implements RouterInterface, RequestMatcherInterface
@@ -802,7 +813,7 @@ index 7e401c3ff3..6b446ff376 100644
802813
+ public function vote(TokenInterface $token, mixed $subject, array $attributes): int;
803814
}
804815
diff --git a/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php b/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php
805-
index 298bc78cd9..3ef4176dd8 100644
816+
index 9e2b02b603..c6a753f1f7 100644
806817
--- a/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php
807818
+++ b/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php
808819
@@ -89,5 +89,5 @@ class AuthenticationException extends RuntimeException
@@ -841,7 +852,7 @@ index 91271d14a3..100c2fb549 100644
841852
+ public function start(Request $request, AuthenticationException $authException = null): Response;
842853
}
843854
diff --git a/src/Symfony/Component/Security/Http/Firewall.php b/src/Symfony/Component/Security/Http/Firewall.php
844-
index 0c313f8f09..acfc9f4b88 100644
855+
index 546b77d22f..24038d4b94 100644
845856
--- a/src/Symfony/Component/Security/Http/Firewall.php
846857
+++ b/src/Symfony/Component/Security/Http/Firewall.php
847858
@@ -106,5 +106,5 @@ class Firewall implements EventSubscriberInterface
@@ -879,7 +890,7 @@ index 84a84ad1f3..6f66b6d32a 100644
879890
+ public function supportsDecoding(string $format): bool;
880891
}
881892
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
882-
index b0a1f3218b..893fe59e2f 100644
893+
index 7f86ed8d78..cf084423ec 100644
883894
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
884895
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php
885896
@@ -223,5 +223,5 @@ abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerIn
@@ -1017,31 +1028,31 @@ index 4c088b94f9..86107a636d 100644
10171028
+ abstract protected function extractFromDirectory(string|array $resource): iterable;
10181029
}
10191030
diff --git a/src/Symfony/Component/Validator/Constraint.php b/src/Symfony/Component/Validator/Constraint.php
1020-
index d6dcdf178f..0ab8d9c10e 100644
1031+
index 46432f2f4c..47ac39d5e3 100644
10211032
--- a/src/Symfony/Component/Validator/Constraint.php
10221033
+++ b/src/Symfony/Component/Validator/Constraint.php
1023-
@@ -239,5 +239,5 @@ abstract class Constraint
1034+
@@ -243,5 +243,5 @@ abstract class Constraint
10241035
* @see __construct()
10251036
*/
10261037
- public function getDefaultOption()
10271038
+ public function getDefaultOption(): ?string
10281039
{
10291040
return null;
1030-
@@ -253,5 +253,5 @@ abstract class Constraint
1041+
@@ -257,5 +257,5 @@ abstract class Constraint
10311042
* @see __construct()
10321043
*/
10331044
- public function getRequiredOptions()
10341045
+ public function getRequiredOptions(): array
10351046
{
10361047
return [];
1037-
@@ -267,5 +267,5 @@ abstract class Constraint
1048+
@@ -271,5 +271,5 @@ abstract class Constraint
10381049
* @return string
10391050
*/
10401051
- public function validatedBy()
10411052
+ public function validatedBy(): string
10421053
{
10431054
return static::class.'Validator';
1044-
@@ -281,5 +281,5 @@ abstract class Constraint
1055+
@@ -285,5 +285,5 @@ abstract class Constraint
10451056
* @return string|string[] One or more constant values
10461057
*/
10471058
- public function getTargets()

.github/patch-types.php

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,37 @@
1313

1414
foreach ($loader->getClassMap() as $class => $file) {
1515
switch (true) {
16-
case str_contains($file = realpath($file), '/vendor/'):
17-
case str_contains($file, '/src/Symfony/Bridge/PhpUnit/'):
18-
case str_contains($file, '/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Article.php'):
19-
case str_contains($file, '/src/Symfony/Component/Cache/Tests/Fixtures/DriverWrapper.php'):
20-
case str_contains($file, '/src/Symfony/Component/Config/Tests/Fixtures/BadFileName.php'):
21-
case str_contains($file, '/src/Symfony/Component/Config/Tests/Fixtures/BadParent.php'):
22-
case str_contains($file, '/src/Symfony/Component/Config/Tests/Fixtures/ParseError.php'):
23-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php'):
24-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Tests/Compiler/OptionalServiceClass.php'):
25-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php'):
26-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/intersectiontype_classes.php'):
27-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/MultipleArgumentsOptionalScalarNotReallyOptional.php'):
28-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/CheckTypeDeclarationsPass/IntersectionConstructor.php'):
29-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/NewInInitializer.php'):
30-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/ParentNotExists.php'):
31-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/Preload/'):
32-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/Prototype/BadClasses/MissingParent.php'):
33-
case str_contains($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/'):
34-
case str_contains($file, '/src/Symfony/Component/ErrorHandler/Tests/Fixtures/'):
35-
case str_contains($file, '/src/Symfony/Component/Form/Tests/Fixtures/Answer.php'):
36-
case str_contains($file, '/src/Symfony/Component/Form/Tests/Fixtures/Number.php'):
37-
case str_contains($file, '/src/Symfony/Component/Form/Tests/Fixtures/Suit.php'):
38-
case str_contains($file, '/src/Symfony/Component/PropertyInfo/Tests/Fixtures/'):
39-
case str_contains($file, '/src/Symfony/Component/PropertyInfo/Tests/Fixtures/Php81Dummy.php'):
40-
case str_contains($file, '/src/Symfony/Component/Runtime/Internal/ComposerPlugin.php'):
41-
case str_contains($file, '/src/Symfony/Component/Serializer/Tests/Fixtures/'):
42-
case str_contains($file, '/src/Symfony/Component/Serializer/Tests/Normalizer/Features/ObjectOuter.php'):
43-
case str_contains($file, '/src/Symfony/Component/Validator/Tests/Fixtures/NestedAttribute/Entity.php'):
44-
case str_contains($file, '/src/Symfony/Component/VarDumper/Tests/Fixtures/NotLoadableClass.php'):
45-
case str_contains($file, '/src/Symfony/Component/VarDumper/Tests/Fixtures/ReflectionIntersectionTypeFixture.php'):
16+
case false !== strpos($file = realpath($file), '/vendor/'):
17+
case false !== strpos($file, '/src/Symfony/Bridge/PhpUnit/'):
18+
case false !== strpos($file, '/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Article.php'):
19+
case false !== strpos($file, '/src/Symfony/Component/Cache/Tests/Fixtures/DriverWrapper.php'):
20+
case false !== strpos($file, '/src/Symfony/Component/Config/Tests/Fixtures/BadFileName.php'):
21+
case false !== strpos($file, '/src/Symfony/Component/Config/Tests/Fixtures/BadParent.php'):
22+
case false !== strpos($file, '/src/Symfony/Component/Config/Tests/Fixtures/ParseError.php'):
23+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php'):
24+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Compiler/OptionalServiceClass.php'):
25+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php'):
26+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/intersectiontype_classes.php'):
27+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/MultipleArgumentsOptionalScalarNotReallyOptional.php'):
28+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/CheckTypeDeclarationsPass/IntersectionConstructor.php'):
29+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/NewInInitializer.php'):
30+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/ParentNotExists.php'):
31+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/Preload/'):
32+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/Prototype/BadClasses/MissingParent.php'):
33+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/'):
34+
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/TestServiceSubscriberIntersectionWithTrait.php'):
35+
case false !== strpos($file, '/src/Symfony/Component/ErrorHandler/Tests/Fixtures/'):
36+
case false !== strpos($file, '/src/Symfony/Component/Form/Tests/Fixtures/Answer.php'):
37+
case false !== strpos($file, '/src/Symfony/Component/Form/Tests/Fixtures/Number.php'):
38+
case false !== strpos($file, '/src/Symfony/Component/Form/Tests/Fixtures/Suit.php'):
39+
case false !== strpos($file, '/src/Symfony/Component/PropertyInfo/Tests/Fixtures/'):
40+
case false !== strpos($file, '/src/Symfony/Component/PropertyInfo/Tests/Fixtures/Php81Dummy.php'):
41+
case false !== strpos($file, '/src/Symfony/Component/Runtime/Internal/ComposerPlugin.php'):
42+
case false !== strpos($file, '/src/Symfony/Component/Serializer/Tests/Fixtures/'):
43+
case false !== strpos($file, '/src/Symfony/Component/Serializer/Tests/Normalizer/Features/ObjectOuter.php'):
44+
case false !== strpos($file, '/src/Symfony/Component/Validator/Tests/Fixtures/NestedAttribute/Entity.php'):
45+
case false !== strpos($file, '/src/Symfony/Component/VarDumper/Tests/Fixtures/NotLoadableClass.php'):
46+
case false !== strpos($file, '/src/Symfony/Component/VarDumper/Tests/Fixtures/ReflectionIntersectionTypeFixture.php'):
4647
continue 2;
4748
}
4849

0 commit comments

Comments
 (0)