📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
X

RSS XF\Mvc\Entity\Manager::getFinder frequently throws exceptions

X

Xon

Guest
Guest or Bot
getFinder() support Entity/Finder class references, but it does this by calling \XF::classToString() twice.

The problem is the 1st call throws an InvalidArgumentException exception, this is an issue for two reasons;
  • When a debugger is attached via xdebug (aka phpstorm) this pauses execution, InvalidArgumentException is used elsewhere so just ignoring this exception type isn't great.
  • Exceptions are significantly more expensive than a simple string check as...

Read more

Continue reading...
 
Similar content Most view View more
Back
Top