1 | <?php |
||
18 | class ModuleSubscriber implements EventSubscriber |
||
19 | { |
||
20 | /** |
||
21 | * @var ImageManagerServices |
||
22 | */ |
||
23 | protected $service; |
||
24 | |||
25 | protected $cache; |
||
26 | |||
27 | |||
28 | /** |
||
29 | * @param ImageManagerServices $container |
||
|
|||
30 | */ |
||
31 | 27 | public function __construct(ImageManagerServices $service, CacheManager $cacheManager) |
|
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | 27 | public function getSubscribedEvents() |
|
49 | |||
50 | /** |
||
51 | * @param LifecycleEventArgs $args |
||
52 | */ |
||
53 | public function preUpdate(LifecycleEventArgs $args) |
||
70 | |||
71 | /** |
||
72 | * @param LifecycleEventArgs $args |
||
73 | */ |
||
74 | 27 | public function prePersist(LifecycleEventArgs $args) |
|
86 | |||
87 | /** |
||
88 | * @param LifecycleEventArgs $args |
||
89 | */ |
||
90 | 4 | public function postRemove(LifecycleEventArgs $args) |
|
100 | |||
101 | } |
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.