-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 suppression
- Loading branch information
1 parent
0b1d587
commit 6f13147
Showing
3 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.