| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 10 | public function invalidValuesAreRaised($value, string $invalidPropertyPath, string $valueAsString): void |
||
| 11 | { |
||
| 12 | $constraint = new TemplateEntityIsValidConstraint( |
||
| 13 | [ |
||
| 14 | 'message' => 'myMessage', |
||
| 15 | ] |
||
| 16 | ); |
||
| 17 | |||
| 18 | $this->validator->validate($value, $constraint); |
||
| 19 | |||
| 20 | $this->buildViolation($constraint->message) |
||
| 21 | ->atPath($invalidPropertyPath) |
||
| 22 | ->setParameter('{{ string }}', $valueAsString) |
||
| 23 | ->addViolation(); |
||
|
|
|||
| 24 | } |
||
| 30 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.