| 1 | <?php |
||
| 17 | class RobotRepository implements RobotRepositoryInterface, RobotFinderInterface |
||
| 18 | { |
||
| 19 | private $store; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param RobotStoreInterface $file |
||
|
|
|||
| 23 | */ |
||
| 24 | 8 | public function __construct(RobotStoreInterface $store) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return Robot|null |
||
| 31 | */ |
||
| 32 | 6 | public function load(): ?Robot |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @param Robot $robot |
||
| 39 | */ |
||
| 40 | 5 | public function save(Robot $robot): void |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Implemented for the RobotFinderInterface. |
||
| 47 | * |
||
| 48 | * @return Robot[] |
||
| 49 | */ |
||
| 50 | public function find(): array |
||
| 54 | } |
||
| 55 |
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.