mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 01:00:06 +02:00
Fix bugs
This commit is contained in:
@@ -58,7 +58,7 @@ abstract class AbstractDecoder implements DecoderInterface
|
||||
protected function decodeExifData(string $image_data): CollectionInterface
|
||||
{
|
||||
if (!function_exists('exif_read_data')) {
|
||||
return [];
|
||||
return new Collection();
|
||||
}
|
||||
|
||||
try {
|
||||
|
@@ -17,7 +17,9 @@ class Core extends Collection implements CoreInterface
|
||||
|
||||
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
|
||||
|
@@ -13,7 +13,7 @@ class Line
|
||||
) {
|
||||
}
|
||||
|
||||
public function position(): Point
|
||||
public function position(): PointInterface
|
||||
{
|
||||
return $this->position;
|
||||
}
|
||||
|
Reference in New Issue
Block a user