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) |
||
34 | |||
35 | /** |
||
36 | * @param AdminInterface $admin |
||
|
|||
37 | * |
||
38 | * @return TranslatableListener |
||
39 | */ |
||
40 | protected function getTranslatableListener() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function alterObject(AdminInterface $admin, $object) |
||
58 | } |
||
59 |
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.