1 | <?php |
||
22 | class TranslatableAdminExtension extends AbstractTranslatableAdminExtension |
||
23 | { |
||
24 | /** |
||
25 | * @var TranslatableListener |
||
26 | */ |
||
27 | protected $translatableListener; |
||
28 | |||
29 | public function __construct(TranslatableChecker $translatableChecker, TranslatableListener $translatableListener) { |
||
33 | |||
34 | /** |
||
35 | * @param AdminInterface $admin |
||
|
|||
36 | * |
||
37 | * @return TranslatableListener |
||
38 | */ |
||
39 | protected function getTranslatableListener() |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function alterObject(AdminInterface $admin, $object) |
||
57 | } |
||
58 |
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.