Skip to content

Commit 1c2c3fc

Browse files
committed
bug symfony#22647 [VarDumper] Fix dumping of non-nested stubs (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- [VarDumper] Fix dumping of non-nested stubs | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- dd5b7a6 [VarDumper] Fix dumping of non-nested stubs
2 parents 2a288db + dd5b7a6 commit 1c2c3fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/VarDumper/Caster/StubCaster.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ public static function castStub(Stub $c, array $a, Stub $stub, $isNested)
2929
$stub->handle = $c->handle;
3030
$stub->cut = $c->cut;
3131

32-
return array();
32+
$a = array();
3333
}
34+
35+
return $a;
3436
}
3537

3638
public static function cutInternals($obj, array $a, Stub $stub, $isNested)

0 commit comments

Comments
 (0)