Skip to content

Commit c06396a

Browse files
committed
Add AdapterInterface to the return type
1 parent 8e3e69c commit c06396a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Wrapper/Image.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Pimcore\Image\Adapter\GD;
66
use Pimcore\Image\Adapter\Imagick;
7+
use Pimcore\Image\AdapterInterface;
78

89
/**
910
* This class is a wrapper for all static public functions of the \Pimcore\Image class.
@@ -13,7 +14,7 @@ class Image
1314
/**
1415
* @throws \Exception
1516
*/
16-
public function getInstance(): GD|Imagick|null
17+
public function getInstance(): GD|Imagick|AdapterInterface|null
1718
{
1819
return \Pimcore\Image::getInstance();
1920
}

0 commit comments

Comments
 (0)