Skip to content

Commit

Permalink
Avoid warning (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Mar 17, 2024
1 parent 408d365 commit 77fe8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Drivers/Gd/Decoders/AbstractDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ abstract class AbstractDecoder extends GenericAbstractDecoder
*/
protected function getMediaTypeByFilePath(string $filepath): string
{
$info = getimagesize($filepath);
$info = @getimagesize($filepath);

if (!is_array($info)) {
throw new DecoderException('Unable to decode input');
Expand All @@ -40,7 +40,7 @@ protected function getMediaTypeByFilePath(string $filepath): string
*/
protected function getMediaTypeByBinary(string $data): string
{
$info = getimagesizefromstring($data);
$info = @getimagesizefromstring($data);

if (!is_array($info)) {
throw new DecoderException('Unable to decode input');
Expand Down

0 comments on commit 77fe8a9

Please sign in to comment.