ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 32,130
- Points
- 823
Reputation:
wh1teend submitted a new resource:
xf-typegen - Real PHP types for XenForo's runtime magic — finder/repository/find() and entity properties autocomp
Read more
Continue reading...
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:
Click to expand...Code:\XF::finder('XF:User')->fetchOne(); // your IDE sees: mixed \XF::repository('XF:User'); // mixed \XF::em()->find('XF:User', 1); // mixed...
Read more
Continue reading...