From a1f75482e13eae8a2cab240e33eae6f5c7694cce Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sat, 21 Oct 2023 14:49:22 +0200 Subject: [PATCH] Add type hints --- src/Drivers/Abstract/AbstractInputHandler.php | 2 +- src/Drivers/Gd/InputHandler.php | 2 +- src/Drivers/Imagick/InputHandler.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Drivers/Abstract/AbstractInputHandler.php b/src/Drivers/Abstract/AbstractInputHandler.php index d0f25c9b..92ac0b23 100644 --- a/src/Drivers/Abstract/AbstractInputHandler.php +++ b/src/Drivers/Abstract/AbstractInputHandler.php @@ -12,7 +12,7 @@ abstract class AbstractInputHandler /** * Array of decoders which will be stacked into to the input handler chain */ - protected $decoders = []; + protected array $decoders = []; /** * Stack the decoder array into a nested decoder object diff --git a/src/Drivers/Gd/InputHandler.php b/src/Drivers/Gd/InputHandler.php index 85d69a74..2cd3da3b 100644 --- a/src/Drivers/Gd/InputHandler.php +++ b/src/Drivers/Gd/InputHandler.php @@ -17,7 +17,7 @@ use Intervention\Image\Drivers\Gd\Decoders\Base64ImageDecoder; class InputHandler extends AbstractInputHandler { - protected $decoders = [ + protected array $decoders = [ ImageObjectDecoder::class, ColorObjectDecoder::class, HexColorDecoder::class, diff --git a/src/Drivers/Imagick/InputHandler.php b/src/Drivers/Imagick/InputHandler.php index 3d27678a..c41649d0 100644 --- a/src/Drivers/Imagick/InputHandler.php +++ b/src/Drivers/Imagick/InputHandler.php @@ -17,7 +17,7 @@ use Intervention\Image\Drivers\Imagick\Decoders\Base64ImageDecoder; class InputHandler extends AbstractInputHandler { - protected $decoders = [ + protected array $decoders = [ ImageObjectDecoder::class, ColorObjectDecoder::class, HexColorDecoder::class,