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
I didn't want to add a new id method that just does nothing useful at all. So I only overwrote the __toString method in the site class and returned the URL there.
Describe the bug
Return value of Kirby\Cms\Model::__toString() is null when called from $site, e.g. by
echo $site
.To Reproduce
Add
echo $site
to any template php file. This produces to above mentioned PHP error.Expected behavior
__toString() should either return the empty string or throw an exception.
Kirby Version
3.4.2
The text was updated successfully, but these errors were encountered: