| 1 | <?php |
||
| 4 | class MergeAttributes |
||
| 5 | { |
||
| 6 | protected $arrays = []; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @param array $arrays,... |
||
|
|
|||
| 10 | * @throws \RuntimeException |
||
| 11 | */ |
||
| 12 | public function __construct() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function merge() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $valueOne |
||
| 50 | * @param string $valueTwo |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | protected function mergeValues($valueOne, $valueTwo) |
||
| 66 | } |
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.