| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function loadUserByUsername($username): UserInterface |
||
| 28 | { |
||
| 29 | try { |
||
| 30 | return $this->userRepository->fetchOneByUsername($username); |
||
|
|
|||
| 31 | } catch (RecordNotFoundException $e) { |
||
| 32 | throw new UsernameNotFoundException('User by username "' . $username . '" not found!', 0, $e); |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 50 |
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.