diff --git a/system/Images/Handlers/ImageMagickHandler.php b/system/Images/Handlers/ImageMagickHandler.php index 37bd168ead02..5e0bafe00841 100644 --- a/system/Images/Handlers/ImageMagickHandler.php +++ b/system/Images/Handlers/ImageMagickHandler.php @@ -49,7 +49,7 @@ public function __construct($config = null) // We should never see this, so can't test it // @codeCoverageIgnoreStart - if (! (extension_loaded('imagick') || class_exists('Imagick'))) { + if (! (extension_loaded('imagick') || class_exists(Imagick::class))) { throw ImageException::forMissingExtension('IMAGICK'); } // @codeCoverageIgnoreEnd