Unified the exception type for GD and Imagick
authorAlexander Ebert <ebert@woltlab.com>
Tue, 12 Jan 2021 11:53:31 +0000 (12:53 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 12 Jan 2021 11:53:31 +0000 (12:53 +0100)
wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php

index e68d97e493a804ab4816545728f65cd23fb4c1c1..b8da1e045b23cdcad8cdb69d72ae60265da3ffdd 100644 (file)
@@ -530,7 +530,7 @@ class GDImageAdapter implements IImageAdapter {
                                break;
                        
                        default:
-                               throw new \InvalidArgumentException("Unreachable");
+                               throw new \LogicException("Unreachable");
                }
                
                $stream = ob_get_contents();