From 1efc04e5fc4d8301784867b58ce469e63ba47216 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Thu, 6 Jun 2024 17:49:31 +0200 Subject: [PATCH] Add @throws keywords --- src/Drivers/AbstractDriver.php | 1 + src/Drivers/Gd/Driver.php | 1 + src/Drivers/Imagick/Driver.php | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Drivers/AbstractDriver.php b/src/Drivers/AbstractDriver.php index bbef4608..215946f6 100644 --- a/src/Drivers/AbstractDriver.php +++ b/src/Drivers/AbstractDriver.php @@ -64,6 +64,7 @@ public function specialize( /** * {@inheritdoc} * + * @throws NotSupportedException * @see DriverInterface::specializeMultiple() */ public function specializeMultiple(array $objects): array diff --git a/src/Drivers/Gd/Driver.php b/src/Drivers/Gd/Driver.php index 090faebd..5065b75a 100644 --- a/src/Drivers/Gd/Driver.php +++ b/src/Drivers/Gd/Driver.php @@ -72,6 +72,7 @@ public function createImage(int $width, int $height): ImageInterface /** * {@inheritdoc} * + * @throws RuntimeException * @see DriverInterface::createAnimation() */ public function createAnimation(callable $init): ImageInterface diff --git a/src/Drivers/Imagick/Driver.php b/src/Drivers/Imagick/Driver.php index 2c01f83b..b7d7c150 100644 --- a/src/Drivers/Imagick/Driver.php +++ b/src/Drivers/Imagick/Driver.php @@ -71,6 +71,7 @@ public function createImage(int $width, int $height): ImageInterface /** * {@inheritdoc} * + * @throws RuntimeException * @see DriverInterface::createAnimation() */ public function createAnimation(callable $init): ImageInterface