| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 71 | public static function fromArray(array $values = []) |
||
| 72 | { |
||
| 73 | $defaultValues = []; |
||
| 74 | |||
| 75 | foreach ($values as $key => $value) { |
||
| 76 | if (is_array($value)) { |
||
| 77 | $defaultValues[$key] = new static($value); |
||
| 78 | } else { |
||
| 79 | $defaultValues[$key] = $value; |
||
| 80 | } |
||
| 81 | } |
||
| 82 | |||
| 83 | return new static($defaultValues); |
||
| 84 | } |
||
| 85 | |||
| 87 |
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.