Solved XF\Mvc\Entity\Finder is not compatible with ?? operator

This topic has been solved
X

Xon

Guest
XF\Mvc\Entity\Finder implements __get but not __isset this interacts unexpectedly with the ?? operator.

For objects, the ?? operator calls __isset() first before calling __get. This results in LogicException being thrown instead of the ?? operator working as expected.

Something like this would preserve standard property testing and the relationship behavior (which doesn't appear to be used);

PHP:

public function __isset(string $key)...

Read more

Continue reading...