Skip to content

Commit 38f9111

Browse files
committed
Add forMissingExtension method to ImageException
Add method for handling missing PHP extensions in ImageException.
1 parent 4f6ca9a commit 38f9111

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎system/Images/Exceptions/ImageException.php‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ public static function forMissingImage()
2727
return new static(lang('Images.sourceImageRequired'));
2828
}
2929

30+
/**
31+
* Thrown when a required PHP extension is not loaded.
32+
*
33+
* @return static
34+
*/
35+
public static function forMissingExtension(string $extension)
36+
{
37+
return new static(lang('Images.missingExtension', [$extension]));
38+
}
39+
3040
/**
3141
* Thrown when the file specific is not following the role.
3242
*

0 commit comments

Comments
 (0)