Commit ec236a5
committed
PHP 8.0 | Tokenizer/PHP: bug fix
PHP 8.0 elevate a number of notices/warnings to errors, which now exposes a bug in the `goto` tokenizer logic.
Error: `Trying to access array offset on value of type null`
Fixed by making sure that the token being accessed is an array before trying to access it.1 parent 2b8c1b3 commit ec236a5
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
| 1444 | + | |
| 1445 | + | |
1445 | 1446 | | |
1446 | 1447 | | |
1447 | 1448 | | |
| |||
0 commit comments