From: Alexander Ebert Date: Tue, 12 Jan 2021 11:53:31 +0000 (+0100) Subject: Unified the exception type for GD and Imagick X-Git-Tag: 5.4.0_Alpha_1~455 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ee92bda1f333ea3f84b3dba765d124d3ae15e26;p=GitHub%2FWoltLab%2FWCF.git Unified the exception type for GD and Imagick --- diff --git a/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php index e68d97e493..b8da1e045b 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php @@ -530,7 +530,7 @@ class GDImageAdapter implements IImageAdapter { break; default: - throw new \InvalidArgumentException("Unreachable"); + throw new \LogicException("Unreachable"); } $stream = ob_get_contents();