| 1 | <?php |
||
| 15 | class FindUserService extends Service |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var \App\Containers\User\Contracts\UserRepositoryInterface |
||
| 20 | */ |
||
| 21 | private $userRepository; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * FindUserService constructor. |
||
| 25 | * |
||
| 26 | * @param \App\Containers\User\Contracts\UserRepositoryInterface $userRepository |
||
| 27 | */ |
||
| 28 | public function __construct(UserRepositoryInterface $userRepository) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param $email |
||
| 35 | * @param $password |
||
| 36 | * @param $name |
||
| 37 | * @param bool|false $login |
||
|
|
|||
| 38 | * |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | public function byId($id) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param $agentId |
||
| 55 | * |
||
| 56 | * @return mixed |
||
| 57 | */ |
||
| 58 | public function byAgentId($agentId) |
||
| 64 | } |
||
| 65 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.