Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function createDriver(array $metadataDirectories, Reader $annotationReader) |
||
21 | { |
||
22 | if (!empty($metadataDirectories)) { |
||
23 | $fileLocator = new FileLocator($metadataDirectories); |
||
24 | |||
25 | return new DriverChain([ |
||
26 | new YamlDriver($fileLocator), |
||
27 | new AnnotationDriver($annotationReader), |
||
28 | ]); |
||
29 | } |
||
30 | |||
31 | return new AnnotationDriver($annotationReader); |
||
32 | } |
||
33 | } |
||
34 |
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.