XF\Mvc\Entity\Manager::getFinder can frequently throw exceptions

Status
This content is read-only, or is not open for further replies.

Xon

Guest
offline
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.
    • Depend on the page, this can cause a lot of exceptions which makes...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom