1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Add slash

This commit is contained in:
Brown 2019-12-04 12:29:06 -05:00
parent e1dd22ef6c
commit 3a5bb9db9a

View File

@ -498,7 +498,7 @@ class Reconciler
}
} elseif (!$existing_key_type_part instanceof Type\Atomic\ObjectLike) {
return Type::getMixed();
} elseif ($array_key[0] === '$' || ($array_key[0] !== '\'' && !is_numeric($array_key[0]))) {
} elseif ($array_key[0] === '$' || ($array_key[0] !== '\'' && !\is_numeric($array_key[0]))) {
if ($has_empty) {
return null;
}