This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Commit 2d4aaf2
committed
fix: handle file open errors differently in PHP 8
In PHP 8, `fopen()` raises a `ValueError` if the path provided is empty/invalid, instead of returning `false` and triggering a warning.
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>1 parent b59d718 commit 2d4aaf2
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| 172 | + | |
171 | 173 | | |
172 | | - | |
173 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
174 | 180 | | |
175 | 181 | | |
176 | | - | |
| 182 | + | |
| 183 | + | |
177 | 184 | | |
178 | 185 | | |
179 | 186 | | |
| |||
0 commit comments