- Affected version
- 2.2.2
A number of places in the XenForo code base refer to the full class name as a string instead of just sanely using the built in
Since XenForo 2.1+ now requires a minimum php version which supports this, it would make sense to use this feature consistently. I've noticed it is used on some of the very new XF2.2+ features but hasn't been retrofitted anywhere else.
I'ld even suggest this is probably more useful than the standard practice of
::class
feature, largely around extendClass
Since XenForo 2.1+ now requires a minimum php version which supports this, it would make sense to use this feature consistently. I've noticed it is used on some of the very new XF2.2+ features but hasn't been retrofitted anywhere else.
I'ld even suggest this is probably more useful than the standard practice of
\XF::repository('XF:User')
and probably should transition to \XF::repository(User::class)
.