8000 Merge branch '2.8' into 3.1 · symfony/symfony@0cd5f13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cd5f13

Browse files
Merge branch '2.8' into 3.1
* 2.8: Fix merge
2 parents 46843d3 + 23bc357 commit 0cd5f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static function castEnum(EnumStub $c, array $a, Stub $stub, $isNested)
6060

6161
if ($c->value) {
6262
foreach (array_keys($c->value) as $k) {
63-
$keys[] = isset($k[0]) && "\0" !== $k[0] ? Caster::PREFIX_VIRTUAL.$k : $k;
63+
$keys[] = !isset($k[0]) || "\0" !== $k[0] ? Caster::PREFIX_VIRTUAL.$k : $k;
6464
}
6565
// Preserve references with array_combine()
6666
$a = array_combine($keys, $c->value);

0 commit comments

Comments
 (0)
0