Commit 6f13147
Suppress getimagesize() warnings (#17944)
* Suppress getimagesize() warnings
`getimagesize` will fail with a notice on files smaller than 12 bytes.
This ends up becoming an ErrorException which is pretty annoying.
Suppressing the warning is enough to still end up with a `false` result
which will fail the validation gracefully instead of grueing up your
stew.
* Add test to prove need for warning suppression1 parent 0b1d587 commit 6f13147
File tree
3 files changed
+8
-1
lines changed- src/Illuminate/Validation/Concerns
- tests/Validation
- fixtures
3 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
| 427 | + | |
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1923 | 1923 | | |
1924 | 1924 | | |
1925 | 1925 | | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
1926 | 1933 | | |
1927 | 1934 | | |
1928 | 1935 | | |
| |||
0 commit comments