| 1 | <?php |
||
| 7 | class ProgramVisitorsControl extends BaseControl |
||
| 8 | { |
||
| 9 | |||
| 10 | const TEMPLATE_NAME = 'ProgramVisitors'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var ProgramRepository |
||
| 14 | */ |
||
| 15 | private $programRepository; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param ProgramRepository $repository |
||
| 19 | */ |
||
| 20 | public function __construct(ProgramRepository $repository) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $mealColumn |
||
|
|
|||
| 27 | * @param string $mealName |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | public function render(int $programId) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return ProgramRepository |
||
| 42 | */ |
||
| 43 | protected function getProgramRepository(): ProgramRepository |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param ProgramRepository $repository |
||
| 50 | * @return self |
||
| 51 | */ |
||
| 52 | protected function setProgramRepository(ProgramRepository $repository): self |
||
| 58 | |||
| 59 | } |
||
| 60 |
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.