| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public static function createFromConstraintViolationList(ConstraintViolationListInterface $list): self |
||
| 33 | { |
||
| 34 | $messages = []; |
||
| 35 | /** |
||
| 36 | * @var ConstraintViolationInterface $violation |
||
| 37 | */ |
||
| 38 | foreach ($list as $violation) { |
||
| 39 | $messages[$violation->getPropertyPath()] = $violation->getMessage(); |
||
| 40 | } |
||
| 41 | |||
| 42 | return new self($messages); |
||
| 43 | } |
||
| 44 | |||
| 73 |
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.