Skip to content

Commit

Permalink
Suppress warnings from imagecreatefromstring (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmcdonald-uk authored Apr 15, 2024
1 parent 4f0a3fd commit ebee025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Gd/GdDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function loadFile(string $path, bool $autoRotate = true): static

$this->setExif($path);

$image = imagecreatefromstring($contents);
$image = @imagecreatefromstring($contents);

if (! $image) {
throw CouldNotLoadImage::make($path);
Expand Down

0 comments on commit ebee025

Please sign in to comment.