Skip to content

Commit 2530d7d

Browse files
[VarDumper] Fix generator dump format for PHP 8.4
1 parent 0c17c56 commit 2530d7d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Tests/Caster/ReflectionCasterTest.php

+7-5
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)