Commit 7d79c59
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 a43ae18 commit 7d79c59
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1246 | 1246 | | |
1247 | 1247 | | |
1248 | 1248 | | |
1249 | | - | |
| 1249 | + | |
| 1250 | + | |
1250 | 1251 | | |
1251 | 1252 | | |
1252 | 1253 | | |
| |||
0 commit comments