| 1 | <?php |
||
| 16 | class RoutePublisher extends Publisher |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Get the source configuration directory to publish. |
||
| 20 | * |
||
| 21 | * @param string $package |
||
|
|
|||
| 22 | * @param string $packagePath |
||
| 23 | * |
||
| 24 | * @return string |
||
| 25 | * |
||
| 26 | * @throws \InvalidArgumentException |
||
| 27 | */ |
||
| 28 | protected function getSource($packagePath) |
||
| 43 | } |
||
| 44 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.