Skip to content

Commit 4469658

Browse files
Ensure that array element exists
1 parent e16c50d commit 4469658

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Context.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ private function containsArray(array $array): false|int
144144

145145
if (isset($end[1]) &&
146146
$end[1] === $this->objects &&
147+
isset($end[0]) &&
147148
is_int($end[0])) {
148149
return $end[0];
149150
}

0 commit comments

Comments
 (0)