From c5eb1e2ca070e347a85c44253ecad7094b2c5b30 Mon Sep 17 00:00:00 2001 From: Konnng Date: Mon, 3 Jun 2024 10:58:59 -0300 Subject: [PATCH] fix: revert typings return --- src/Manipulators/BaseManipulator.php | 5 ++--- src/Manipulators/ManipulatorInterface.php | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Manipulators/BaseManipulator.php b/src/Manipulators/BaseManipulator.php index c9108cb..61df0e1 100644 --- a/src/Manipulators/BaseManipulator.php +++ b/src/Manipulators/BaseManipulator.php @@ -2,7 +2,6 @@ namespace League\Glide\Manipulators; -use Intervention\Image\Interfaces\EncodedImageInterface; use Intervention\Image\Interfaces\ImageInterface; abstract class BaseManipulator implements ManipulatorInterface @@ -39,7 +38,7 @@ public function getParam(string $name): mixed /** * Perform the image manipulation. * - * @return ImageInterface|EncodedImageInterface The manipulated image. + * @return ImageInterface The manipulated image. */ - abstract public function run(ImageInterface $image): ImageInterface|EncodedImageInterface; + abstract public function run(ImageInterface $image): ImageInterface; } diff --git a/src/Manipulators/ManipulatorInterface.php b/src/Manipulators/ManipulatorInterface.php index cb11be1..d04c266 100644 --- a/src/Manipulators/ManipulatorInterface.php +++ b/src/Manipulators/ManipulatorInterface.php @@ -2,7 +2,6 @@ namespace League\Glide\Manipulators; -use Intervention\Image\Interfaces\EncodedImageInterface; use Intervention\Image\Interfaces\ImageInterface; interface ManipulatorInterface @@ -26,7 +25,7 @@ public function getParam(string $name): mixed; * * @param ImageInterface $image The source image. * - * @return ImageInterface|EncodedImageInterface The manipulated image. + * @return ImageInterface The manipulated image. */ - public function run(ImageInterface $image): ImageInterface|EncodedImageInterface; + public function run(ImageInterface $image): ImageInterface; }