Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion system/Images/Handlers/GDHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace CodeIgniter\Images\Handlers;

use CodeIgniter\Exceptions\RuntimeException;
use CodeIgniter\Images\Exceptions\ImageException;
use Config\Images;
use GdImage;
Expand All @@ -35,7 +36,10 @@ public function __construct($config = null)
parent::__construct($config);

if (! extension_loaded('gd')) {
throw ImageException::forMissingExtension('GD'); // @codeCoverageIgnore
throw new RuntimeException(sprintf(
'The "%s" handler requires the "gd" PHP extension.',
static::class,
));
}
}

Expand Down
3 changes: 1 addition & 2 deletions utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# total 38 errors
# total 37 errors

includes:
- arguments.count.neon
Expand All @@ -8,4 +8,3 @@ includes:
- missingType.callable.neon
- property.defaultValue.neon
- property.phpDocType.neon
- staticMethod.notFound.neon
8 changes: 0 additions & 8 deletions utils/phpstan-baseline/staticMethod.notFound.neon

This file was deleted.

Loading