Commit fc091fc
Fix PHP 8.5 deprecation: null as array offset in -o option handler
PHP 8.5 deprecated using null as an array offset. When running
`-o console` without a filename, $file was null and used as array
key in $outputFiles[$file], triggering E_DEPRECATED which the
strict error handler converted to a fatal error.
Changed the default from null to empty string '' and updated the
corresponding null checks to check for empty string instead.1 parent dc02e78 commit fc091fc
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
0 commit comments