📢 Moderators Needed 🚀

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

RSS Finder methods return hints are too wide

  • Thread starter Thread starter Kirby
  • Start date Start date
K

Kirby

Guest
Guest or Bot
A bunch of finder methods hint
PHP:

@return Finder

This breaks type hinting for code like
PHP:

Code:
$anAdmin = \XF::finder(UserFinder::class)
    ->where('is_admin', 1)
    ->fetchOne();
=> $anAdmin should be \XF\Entity\User but is reported as \XF\Mvc\Entity\Entity

Chould this be changed to @return static?

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