| 1 | <?php |
||
| 18 | class ComposerServiceFactory |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Create service |
||
| 22 | * |
||
| 23 | * @param ContainerInterface|ServiceLocatorInterface $serviceLocator |
||
| 24 | * @param string $requestedName |
||
|
|
|||
| 25 | * @param array $options |
||
| 26 | * @return Composer |
||
| 27 | */ |
||
| 28 | 3 | public function __invoke(ContainerInterface $serviceLocator) |
|
| 47 | } |
||
| 48 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.