The method fetchOneByUsername() does not seem to exist on object<Oc\User\UserRepository>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
31
} catch (RecordNotFoundException $e) {
32
throw new UsernameNotFoundException('User by username "' . $username . '" not found!', 0, $e);
33
}
34
}
35
36
public function refreshUser(UserInterface $user): UserInterface
37
{
38
if (!$user instanceof UserEntity) {
39
throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user)));
The method fetchOneByUsername() does not seem to exist on object<Oc\User\UserRepository>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Due to PHP Bug #53727, is_subclass_of might return inconsistent results on some PHP versions if \Oc\User\UserEntity::class can be an interface. If so, you could instead use ReflectionClass::implementsInterface.
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.