X Xon Well-known member Nov 21, 2017 #1 Affected version 2.0 RC2 The XF\Repository\User::getUserByNameOrEmail method doesn't have any phpdocs, so the inferred type is an Entity rather than a User object.
The XF\Repository\User::getUserByNameOrEmail method doesn't have any phpdocs, so the inferred type is an Entity rather than a User object.