1 | <?php |
||
17 | class ComposerServiceFactory |
||
18 | { |
||
19 | /** |
||
20 | * Create service |
||
21 | * |
||
22 | * @param ContainerInterface|ServiceLocatorInterface $serviceLocator |
||
23 | * @param string $requestedName |
||
|
|||
24 | * @param array $options |
||
25 | * @return Composer |
||
26 | */ |
||
27 | 3 | public function __invoke(ContainerInterface $serviceLocator) |
|
46 | } |
||
47 |
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.