Skip to content
This repository was archived by the owner on Sep 30, 2018. It is now read-only.

Commit 08a530c

Browse files
committed
Bugfix(critical): phantom element in existing array (lastkey)
1 parent 2032dca commit 08a530c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Arrays.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function ($m) use (&$parseInfo, &$array) {
201201
if (!$parseInfo['first']) {
202202
$parseInfo['prevEl'] = &$parseInfo['currEl'];
203203
}
204-
$parseInfo['currEl'] = &$array[$m['el']];
204+
$parseInfo['currEl'] = &$parseInfo['currEl'][$m['el']];
205205
$parseInfo['lastKey'] = $m['el'];
206206
$parseInfo['first'] = false;
207207
}

0 commit comments

Comments
 (0)