1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 20:28:21 +01:00

Added EncodedImage::toString()

This commit is contained in:
Oliver Vogel 2022-01-16 18:13:56 +01:00
parent 87267764b9
commit 5a4e677b82

View File

@ -33,8 +33,13 @@ class EncodedImage
return sprintf('data:%s;base64,%s', $this->mimetype, base64_encode($this->data));
}
public function __toString(): string
public function toString(): string
{
return $this->data;
}
public function __toString(): string
{
return $this->toString();
}
}