Skip to content

Commit

Permalink
fix: revert typings return
Browse files Browse the repository at this point in the history
  • Loading branch information
konnng-dev committed Jun 3, 2024
1 parent 62623fe commit c5eb1e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/Manipulators/BaseManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace League\Glide\Manipulators;

use Intervention\Image\Interfaces\EncodedImageInterface;
use Intervention\Image\Interfaces\ImageInterface;

abstract class BaseManipulator implements ManipulatorInterface
Expand Down Expand Up @@ -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;
}
5 changes: 2 additions & 3 deletions src/Manipulators/ManipulatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace League\Glide\Manipulators;

use Intervention\Image\Interfaces\EncodedImageInterface;
use Intervention\Image\Interfaces\ImageInterface;

interface ManipulatorInterface
Expand All @@ -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;
}

0 comments on commit c5eb1e2

Please sign in to comment.