Skip to content

Commit

Permalink
More 7.2 fixup stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Aug 15, 2024
1 parent fba40b0 commit 1ac18b0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Parser/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,7 @@ private function parseArray(array &$var, Value $o): Value
$child->operator = Value::OPERATOR_ARRAY;

if (null !== $array->access_path) {
if (\is_string($key) && (string) (int) $key === $key) {
$child->access_path = 'array_values('.$array->access_path.')['.$i.']'; // @codeCoverageIgnore
} else {
$child->access_path = $array->access_path.'['.\var_export($key, true).']';
}
$child->access_path = $array->access_path.'['.\var_export($key, true).']';
}

$stash = $val;
Expand Down

0 comments on commit 1ac18b0

Please sign in to comment.