Fix merge

This commit is contained in:
Nicolas Grekas 2016-08-31 11:05:30 +02:00
parent 808333e5d0
commit 23bc357ca7

View File

@ -60,7 +60,7 @@ class StubCaster
if ($c->value) {
foreach (array_keys($c->value) as $k) {
$keys[] = isset($k[0]) && "\0" !== $k[0] ? Caster::PREFIX_VIRTUAL.$k : $k;
$keys[] = !isset($k[0]) || "\0" !== $k[0] ? Caster::PREFIX_VIRTUAL.$k : $k;
}
// Preserve references with array_combine()
$a = array_combine($keys, $c->value);