1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 09:10:21 +02:00
This commit is contained in:
Oliver Vogel
2023-11-25 14:47:35 +01:00
parent f4c22cffe8
commit cd2f72f011
3 changed files with 5 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ abstract class AbstractDecoder implements DecoderInterface
protected function decodeExifData(string $image_data): CollectionInterface protected function decodeExifData(string $image_data): CollectionInterface
{ {
if (!function_exists('exif_read_data')) { if (!function_exists('exif_read_data')) {
return []; return new Collection();
} }
try { try {

View File

@@ -17,7 +17,9 @@ class Core extends Collection implements CoreInterface
public function setNative(mixed $native): self public function setNative(mixed $native): self
{ {
return $this->empty()->push(new Frame($native)); $this->empty()->push(new Frame($native));
return $this;
} }
public function frame(int $position): FrameInterface public function frame(int $position): FrameInterface

View File

@@ -13,7 +13,7 @@ class Line
) { ) {
} }
public function position(): Point public function position(): PointInterface
{ {
return $this->position; return $this->position;
} }