Commit 072042a
Files/FileList::current() - Check files array key
For some unknown reason, doing git precommit hook with husky and
PHP 7.4, FileList method `current` tries to access undefined array
index and throws RuntimeException.
After adding the `isset($this->files[$path]) === false` check,
linting works as expected.
Remove redundant check1 parent 4af4d84 commit 072042a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
0 commit comments