1 | <?php |
||
20 | class TranslatableAdminExtension extends AbstractTranslatableAdminExtension |
||
21 | { |
||
22 | /** |
||
23 | * @var TranslatableListener |
||
24 | */ |
||
25 | protected $translatableListener; |
||
26 | |||
27 | public function __construct(TranslatableChecker $translatableChecker, TranslatableListener $translatableListener) { |
||
31 | |||
32 | /** |
||
33 | * @param AdminInterface $admin |
||
|
|||
34 | * |
||
35 | * @return TranslatableListener |
||
36 | */ |
||
37 | protected function getTranslatableListener() |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function alterObject(AdminInterface $admin, $object) |
||
55 | } |
||
56 |
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.