1 | <?php |
||
14 | class Config |
||
15 | { |
||
16 | /** |
||
17 | * Recursively merge two config arrays with a specific behavior: |
||
18 | * |
||
19 | * 1. scalar values are overridden |
||
20 | * 2. array values are extended uniquely if all keys are numeric |
||
21 | * 3. all other array values are merged |
||
22 | * |
||
23 | * @param array $a |
||
|
|||
24 | * @param array $b |
||
25 | * @return array |
||
26 | * @see http://stackoverflow.com/a/36366886/6812729 |
||
27 | */ |
||
28 | public static function merge(array $original, array $override) |
||
50 | } |
||
51 |
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.