My use case is starting with Twig, somehow when checking for __toString method the autoload mechanism is triggered even on simple values, and then checking for "0" raises Exception - as it is empty()'ish.
I think that autoload should not throw exceptions if class is simply not found, changing it to simple returns should prevent surprises for devs.
My use case is starting with Twig, somehow when checking for
__toString
method the autoload mechanism is triggered even on simple values, and then checking for "0" raises Exception - as it isempty()
'ish. I think that autoload should not throw exceptions if class is simply not found, changing it to simple returns should prevent surprises for devs.