Skip to content

Commit 0fe76c6

Browse files
authored
Update Image.php
1 parent 6eb0003 commit 0fe76c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ public function applyText(GdImage $sourceResource): GdImage
755755
$font = @file_get_contents($this->fontPath);
756756

757757
if ($font === false) {
758-
throw new Exception('Failed to download font from: ' . $this->fontPath);
758+
throw new \Exception('Failed to download font from: ' . $this->fontPath);
759759
}
760760
file_put_contents($tempFontPath, $this->fontPath);
761761
$fontPath = $tempFontPath;
@@ -774,7 +774,7 @@ public function applyText(GdImage $sourceResource): GdImage
774774
} elseif (file_exists($fontAlt2)) {
775775
$fontPath = $fontAlt2;
776776
} else {
777-
throw new Exception('Font file not found: ' . $fontPath);
777+
throw new \Exception('Font file not found: ' . $fontPath);
778778
}
779779
}
780780
}

0 commit comments

Comments
 (0)