Skip to content

Commit 0872c59

Browse files
authored
Merge pull request #307 from glesende/bugfix/gddriver-catch-error
fix(gddriver): fix CouldNotLoadImage::make error
2 parents 5e7373f + 32c3bbe commit 0872c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Drivers/Gd/GdDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function loadFile(string $path, bool $autoRotate = true): static
8888
try {
8989
$image = imagecreatefromstring($contents);
9090
} catch (Throwable $throwable) {
91-
throw CouldNotLoadImage::make(`{$path} : {$throwable->getMessage()}`);
91+
throw CouldNotLoadImage::make("{$path} : {$throwable->getMessage()}");
9292
}
9393

9494
if (! $image) {

0 commit comments

Comments
 (0)