[RSS Feed/News] XF\Mvc\Entity\Finder is not compatible with ?? operator

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom