Commit 2bbc5f0
committed
HitHighlighter Class: avoid PHP 8 errors
This change should avoid such errors:
PHP Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters
call_user_func_array() expects a function name and an array of parameters to be unpacked and passed on to the function.
In PHP 8, when call_user_func_array() receives an array of parameters with string keys, the keys will be interpreted as parameter names.1 parent 82e4bdd commit 2bbc5f0
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
0 commit comments