wh1teend submitted a new resource:
xf-typegen - Real PHP types for XenForo's runtime magic — finder/repository/find() and entity properties autocomp
Read more about this resource...
xf-typegen - Real PHP types for XenForo's runtime magic — finder/repository/find() and entity properties autocomp
What it does
XenForo wires most of itself together at runtime out of short string names. Convenient to write, but your IDE has no idea what comes back:
PHP:\XF::finder('XF:User')->fetchOne(); // your IDE sees: mixed \XF::repository('XF:User'); // mixed \XF::em()->find('XF:User', 1); // mixed $user->username; // unknown property foreach ($finder->fetch() as $u) { } // $u is... who knows
So you either keep every entity...
Read more about this resource...