Skip to content

Commit

Permalink
Merge branch 'feature/php-8-fix-array-access-on-type-null' of https:/…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Aug 10, 2020
2 parents 6cc3301 + ec236a5 commit 14788ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tokenizers/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,8 @@ function return types. We want to keep the parenthesis map clean,
&& $token[0] === T_STRING
&& isset($tokens[($stackPtr + 1)]) === true
&& $tokens[($stackPtr + 1)] === ':'
&& $tokens[($stackPtr - 1)][0] !== T_PAAMAYIM_NEKUDOTAYIM
&& (is_array($tokens[($stackPtr - 1)]) === false
|| $tokens[($stackPtr - 1)][0] !== T_PAAMAYIM_NEKUDOTAYIM)
) {
$stopTokens = [
T_CASE => true,
Expand Down

0 comments on commit 14788ab

Please sign in to comment.