8000 Fix expected missing return types · symfony/symfony@799283d · GitHub
[go: up one dir, main page]

Skip to content

Commit 799283d

Browse files
Fix expected missing return types
1 parent b2e9463 commit 799283d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Run these steps to update this file:
2-
sed -i 's/ *"\*\*\/Tests\/"//' composer.json
2+
sed -i 's/ *"\*\*\/Tests\/",//' composer.json
33
composer u -o
44
SYMFONY_PATCH_TYPE_DECLARATIONS='force=2&php=8.1' php .github/patch-types.php
55
head=$(sed '/^diff /Q' .github/expected-missing-return-types.diff)
@@ -7063,7 +7063,7 @@ diff --git a/src/Symfony/Component/HttpClient/DecoratorTrait.php b/src/Symfony/C
70637063
diff --git a/src/Symfony/Component/HttpClient/HttpClientTrait.php b/src/Symfony/Component/HttpClient/HttpClientTrait.php
70647064
--- a/src/Symfony/Component/HttpClient/HttpClientTrait.php
70657065
+++ b/src/Symfony/Component/HttpClient/HttpClientTrait.php
7066-
@@ -679,5 +679,5 @@ trait HttpClientTrait
7066+
@@ -685,5 +685,5 @@ trait HttpClientTrait
70677067
* @return string
70687068
*/
70697069
- private static function removeDotSegments(string $path)
@@ -8457,28 +8457,28 @@ diff --git a/src/Symfony/Component/HttpKernel/HttpCache/Esi.php b/src/Symfony/Co
84578457
diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
84588458
--- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
84598459
+++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
8460-
@@ -246,5 +246,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
8460+
@@ -248,5 +248,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
84618461
* @return void
84628462
*/
84638463
- public function terminate(Request $request, Response $response)
84648464
+ public function terminate(Request $request, Response $response): void
84658465
{
84668466
// Do not call any listeners in case of a cache hit.
8467-
@@ -466,5 +466,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
8467+
@@ -468,5 +468,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
84688468
* @return Response
84698469
*/
84708470
- protected function forward(Request $request, bool $catch = false, ?Response $entry = null)
84718471
+ protected function forward(Request $request, bool $catch = false, ?Response $entry = null): Response
84728472
{
84738473
$this->surrogate?->addSurrogateCapability($request);
8474-
@@ -600,5 +600,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
8474+
@@ -602,5 +602,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
84758475
* @throws \Exception
84768476
*/
84778477
- protected function store(Request $request, Response $response)
84788478
+ protected function store(Request $request, Response $response): void
84798479
{
84808480
try {
8481-
@@ -678,5 +678,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
8481+
@@ -680,5 +680,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
84828482
* @return void
84838483
*/
84848484
- protected function processResponseBody(Request $request, Response $response)
@@ -9943,7 +9943,7 @@ diff --git a/src/Symfony/Component/Mime/Part/TextPart.php b/src/Symfony/Componen
99439943
diff --git a/src/Symfony/Component/Mime/RawMessage.php b/src/Symfony/Component/Mime/RawMessage.php
99449944
--- a/src/Symfony/Component/Mime/RawMessage.php
99459945
+++ b/src/Symfony/Component/Mime/RawMessage.php
9946-
@@ -97,5 +97,5 @@ class RawMessage
9946+
@@ -100,5 +100,5 @@ class RawMessage
99479947
* @throws LogicException if the message is not valid
99489948
*/
99499949
- public function ensureValidity()
@@ -10147,7 +10147,7 @@ diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php b/src/Sym
1014710147
- public function setValue(object|array &$objectOrArray, string|PropertyPathInterface $propertyPath, mixed $value)
1014810148
+ public function setValue(object|array &$objectOrArray, string|PropertyPathInterface $propertyPath, mixed $value): void
1014910149
{
10150-
if (\is_object($objectOrArray) && false === strpbrk((string) $propertyPath, '.[')) {
10150+
if (\is_object($objectOrArray) && (false === strpbrk((string) $propertyPath, '.[') || $objectOrArray instanceof \stdClass && property_exists($objectOrArray, $propertyPath))) {
1015110151
diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php b/src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php
1015210152
--- a/src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php
1015310153
+++ b/src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php
@@ -12808,7 +12808,7 @@ diff --git a/src/Symfony/Component/Validator/Constraints/HostnameValidator.php b
1280812808
diff --git a/src/Symfony/Component/Validator/Constraints/IbanValidator.php b/src/Symfony/Component/Validator/Constraints/IbanValidator.php
1280912809
--- a/src/Symfony/Component/Validator/Constraints/IbanValidator.php
1281012810
+++ b/src/Symfony/Component/Validator/Constraints/IbanValidator.php
12811-
@@ -167,5 +167,5 @@ class IbanValidator extends ConstraintValidator
12811+
@@ -171,5 +171,5 @@ class IbanValidator extends ConstraintValidator
1281212812
* @return void
1281312813
*/
1281412814
- public function validate(mixed $value, Constraint $constraint)

src/Symfony/Component/PropertyAccess/PropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getValue(object|array $objectOrArray, string|PropertyPathInterfa
9595
self::VALUE => $objectOrArray,
9696
];
9797

98-
if (\is_object($objectOrArray) && false === strpbrk((string) $propertyPath, '.[?') || $objectOrArray instanceof \stdClass && property_exists($objectOrArray, $propertyPath))) {
98+
if (\is_object($objectOrArray) && (false === strpbrk((string) $propertyPath, '.[?') || $objectOrArray instanceof \stdClass && property_exists($objectOrArray, $propertyPath))) {
9999
return $this->readProperty($zval, $propertyPath, $this->ignoreInvalidProperty)[self::VALUE];
100100
}
101101

0 commit comments

Comments
 (0)
0