mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 09:10:21 +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
|
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 {
|
||||||
|
@@ -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
|
||||||
|
@@ -13,7 +13,7 @@ class Line
|
|||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function position(): Point
|
public function position(): PointInterface
|
||||||
{
|
{
|
||||||
return $this->position;
|
return $this->position;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user