You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Image extends BasicField, and provides some abstract base methods - __toString causes an issue with Image in particular as it invokes ->get() as get() for Image returns an Image instance.
__toString must always return a string.
Happy to shoot through a PR. Simplest solution would probably just to overwrite the abstract method __toString in image with something like:
/**
* @return string
*/
public function __toString()
{
return $this->url;
}
This was covered in #60 but it was closed because it wasn't explained in detail
The text was updated successfully, but these errors were encountered:
Image extends BasicField, and provides some abstract base methods -
__toString
causes an issue with Image in particular as it invokes->get()
as get() forImage
returns an Image instance.__toString
must always return a string.Happy to shoot through a PR. Simplest solution would probably just to overwrite the abstract method __toString in image with something like:
This was covered in #60 but it was closed because it wasn't explained in detail
The text was updated successfully, but these errors were encountered: