8000 Merge branch '6.4' into 7.1 · symfony/symfony@0dd4a44 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0dd4a44

Browse files
Merge branch '6.4' into 7.1
* 6.4: Fix expected missing return types [VarDumper] Fix tests
2 parents 58ee0d3 + 799283d commit 0dd4a44

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ diff --git a/src/Symfony/Component/EventDispatcher/EventSubscriberInterface.php
189189
diff --git a/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php b/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php
190190
--- a/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php
191191
+++ b/src/Symfony/Component/ExpressionLanguage/ExpressionLanguage.php
192-
@@ -139,5 +139,5 @@ class ExpressionLanguage
192+
@@ -149,5 +149,5 @@ class ExpressionLanguage
193193
* @return void
194194
*/
195195
- protected function registerFunctions()
196196
+ protected function registerFunctions(): void
197197
{
198-
$this->addFunction(ExpressionFunction::fromPhp('constant'));
198+
$basicPhpFunctions = ['constant', 'min', 'max'];
199199
diff --git a/src/Symfony/Component/Form/AbstractType.php b/src/Symfony/Component/Form/AbstractType.php
200200
--- a/src/Symfony/Component/Form/AbstractType.php
201201
+++ b/src/Symfony/Component/Form/AbstractType.php

src/Symfony/Component/PropertyAccess/PropertyAccessor.php

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

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

src/Symfony/Component/VarDumper/Tests/Dumper/CliDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public function testThrowingCaster()
343343
#message: "Unexpected Exception thrown from a caster: Foobar"
344344
trace: {
345345
%sTwig.php:2 {
346-
__TwigTemplate_VarDumperFixture_u75a09->doDisplay(array \$context, array \$blocks = [])
346+
__TwigTemplate_VarDumperFixture_u75a09->doDisplay(array \$context, array \$blocks = []): array
347347
› foo bar
348348
› twig source
349349

src/Symfony/Component/VarDumper/Tests/Fixtures/Twig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(?Twig\Environment $env = null, $path = null)
2828
$this->path = $path;
2929
}
3030

31-
protected function doDisplay(array $context, array $blocks = [])
31+
protected function doDisplay(array $context, array $blocks = []): array
3232
{
3333
// line 2
3434
throw new \Exception('Foobar');

0 commit comments

Comments
 (0)
0