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

Skip to content

Commit 8a0673b

Browse files
minor #57978 [VarDumper] Fix generator dump format for PHP 8.4 (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- [VarDumper] Fix generator dump format for PHP 8.4 | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Generator dump format likely changed because of php/php-src#15328. I propose to update the test dedicated to dumping generators in PHP >= 8.4. cc `@xabbuh` Commits ------- 6bb252d [VarDumper] Fix generator dump format for PHP 8.4
2 parents bae6fa5 + 6bb252d commit 8a0673b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -592,11 +592,11 @@ public function testGenerator()
592592
function: "Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::baz"
593593
this: Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo { …}
594594
%s: {
595-
%sGeneratorDemo.php:14 {
595+
%sGeneratorDemo.php:12 {
596596
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo->baz()
597+
598+
› public function baz()
597599
› {
598-
› yield from bar();
599-
› }
600600
}
601601
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo->baz() {}
602602
%A}
@@ -617,7 +617,9 @@ function: "Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::baz"
617617
%s: {
618618
%s%eTests%eFixtures%eGeneratorDemo.php:%d {
619619
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo()
620-
%A › yield 1;
620+
› {
621+
› yield 1;
622+
› }
621623
%A }
622624
%s%eTests%eFixtures%eGeneratorDemo.php:20 { …}
623625
%s%eTests%eFixtures%eGeneratorDemo.php:14 { …}
@@ -629,9 +631,9 @@ function: "Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo"
629631
%s: {
630632
%s%eTests%eFixtures%eGeneratorDemo.php:%d {
631633
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo()
634+
› {
632635
› yield 1;
633636
› }
634-
635637
}
636638
%A }
637639
closed: false

0 commit comments

Comments
 (0)