Skip to content

Commit

Permalink
[VarDumper] Fix generator dump format for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Aug 12, 2024
1 parent 0c17c56 commit 2530d7d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Tests/Caster/ReflectionCasterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,11 @@ public function testGenerator()
function: "Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::baz"
this: Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo { …}
%s: {
%sGeneratorDemo.php:14 {
%sGeneratorDemo.php:12 {
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo->baz()
› public function baz()
› {
› yield from bar();
› }
}
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo->baz() {}
%A}
Expand All @@ -617,7 +617,9 @@ function: "Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::baz"
%s: {
%s%eTests%eFixtures%eGeneratorDemo.php:%d {
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo()
%A › yield 1;
› {
› yield 1;
› }
%A }
%s%eTests%eFixtures%eGeneratorDemo.php:20 { …}
%s%eTests%eFixtures%eGeneratorDemo.php:14 { …}
Expand All @@ -629,9 +631,9 @@ function: "Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo"
%s: {
%s%eTests%eFixtures%eGeneratorDemo.php:%d {
Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo()
› {
› yield 1;
› }
}
%A }
closed: false
Expand Down

0 comments on commit 2530d7d

Please sign in to comment.