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:
parent
87267764b9
commit
5a4e677b82
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user