Skip to content

Commit 23bc357

Browse files
Fix merge
1 parent 808333e commit 23bc357

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)