--- a/src/ImageHash.php +++ b/src/ImageHash.php @@ -18,8 +18,8 @@ class ImageHash private $driver; public function __construct( - Implementation $implementation = null, - ImageManager $driver = null + ?Implementation $implementation = null, + ?ImageManager $driver = null ) { $this->implementation = $implementation ?: $this->defaultImplementation(); $this->driver = $driver ?: $this->defaultDriver();