From 3ee92bda1f333ea3f84b3dba765d124d3ae15e26 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 12 Jan 2021 12:53:31 +0100 Subject: [PATCH] Unified the exception type for GD and Imagick --- .../files/lib/system/image/adapter/GDImageAdapter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1