diff --git a/src/Drivers/Gd/Frame.php b/src/Drivers/Gd/Frame.php index 5db5f767..e344f53f 100644 --- a/src/Drivers/Gd/Frame.php +++ b/src/Drivers/Gd/Frame.php @@ -47,7 +47,7 @@ class Frame extends AbstractFrame implements FrameInterface * * @see FrameInterface::setNative() */ - public function setNative($native): FrameInterface + public function setNative(mixed $native): FrameInterface { $this->native = $native; diff --git a/src/Drivers/Imagick/Core.php b/src/Drivers/Imagick/Core.php index b0e13a40..87dcf986 100644 --- a/src/Drivers/Imagick/Core.php +++ b/src/Drivers/Imagick/Core.php @@ -50,7 +50,7 @@ class Core implements CoreInterface, Iterator * * @see CollectionInterface::push() */ - public function push($item): CollectionInterface + public function push(mixed $item): CollectionInterface { return $this->add($item); } @@ -60,7 +60,7 @@ class Core implements CoreInterface, Iterator * * @see CollectionInterface::get() */ - public function get(int|string $key, $default = null): mixed + public function get(int|string $key, mixed $default = null): mixed { try { $this->imagick->setIteratorIndex($key); @@ -76,7 +76,7 @@ class Core implements CoreInterface, Iterator * * @see CollectionInterface::getAtPosition() */ - public function getAtPosition(int $key = 0, $default = null): mixed + public function getAtPosition(int $key = 0, mixed $default = null): mixed { return $this->get($key, $default); } diff --git a/src/Drivers/Imagick/Frame.php b/src/Drivers/Imagick/Frame.php index 0f9fd639..269a8dba 100644 --- a/src/Drivers/Imagick/Frame.php +++ b/src/Drivers/Imagick/Frame.php @@ -46,7 +46,7 @@ class Frame extends AbstractFrame implements FrameInterface * * @see DriverInterface::setNative() */ - public function setNative($native): FrameInterface + public function setNative(mixed $native): FrameInterface { $this->native = $native; diff --git a/src/InputHandler.php b/src/InputHandler.php index 85eef363..9189aad9 100644 --- a/src/InputHandler.php +++ b/src/InputHandler.php @@ -89,7 +89,7 @@ class InputHandler implements InputHandlerInterface * * @see InputHandlerInterface::handle() */ - public function handle($input): ImageInterface|ColorInterface + public function handle(mixed $input): ImageInterface|ColorInterface { foreach ($this->decoders as $decoder) { try {