Skip to content

Commit ee9e1f4

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: [VarDumper] Fix generator dump format for PHP 8.4
2 parents f18d5bb + 8a0673b commit ee9e1f4

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
@@ -555,11 +555,11 @@ public function testGenerator()
555555
function: "Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::baz"
556556
this: Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo { …}
557557
%s: {
558-
%sGeneratorDemo.php:14 {
558+
%sGeneratorDemo.php:12 {
559559
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo->baz()
560+
561+
› public function baz()
560562
› {
561-
› yield from bar();
562-
› }
563563
}
564564
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo->baz() {}
565565
%A}
@@ -580,7 +580,9 @@ function: "Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::baz"
580580
%s: {
581581
%s%eTests%eFixtures%eGeneratorDemo.php:%d {
582582
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo()
583-
%A › yield 1;
583+
› {
584+
› yield 1;
585+
› }
584586
%A }
585587
%s%eTests%eFixtures%eGeneratorDemo.php:20 { …}
586588
%s%eTests%eFixtures%eGeneratorDemo.php:14 { …}
@@ -592,9 +594,9 @@ function: "Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo"
592594
%s: {
593595
%s%eTests%eFixtures%eGeneratorDemo.php:%d {
594596
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo()
597+
› {
595598
› yield 1;
596599
› }
597-
598600
}
599601
%A }
600602
closed: false

0 commit comments

Comments
 (0)