1 | <?php |
||
17 | class RobotRepository implements RobotRepositoryInterface, RobotFinderInterface |
||
18 | { |
||
19 | private $store; |
||
20 | |||
21 | /** |
||
22 | * @param RobotStoreInterface $file |
||
|
|||
23 | */ |
||
24 | 3 | public function __construct(RobotStoreInterface $store) |
|
28 | |||
29 | /** |
||
30 | * @return Robot|null |
||
31 | */ |
||
32 | 1 | public function load(): ?Robot |
|
36 | |||
37 | /** |
||
38 | * @param Robot $robot |
||
39 | */ |
||
40 | 1 | public function save(Robot $robot): void |
|
41 | { |
||
42 | 1 | $this->store->saveRobot($robot); |
|
43 | 1 | } |
|
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.