| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 17 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 4 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 16 | 5 | public function __construct(FormInterface $form)  | 
            |
| 17 |     { | 
            ||
| 18 | /** @var string[] $errors */  | 
            ||
| 19 | 5 | $errors = [];  | 
            |
| 20 | |||
| 21 | /** @var FormError $error */  | 
            ||
| 22 | 5 |         foreach ($form->getErrors(true) as $error) { | 
            |
| 23 | 5 |             $parametersString = join(',', $error->getMessageParameters()); | 
            |
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 24 | 5 |             if (!$parametersString || in_array($parametersString, ['null', 'array'])) { | 
            |
| 25 | 5 | $errors[] = $error->getMessage();  | 
            |
| 26 |             } else { | 
            ||
| 27 | 5 |                 $errors[] = sprintf('%s - %s', $parametersString, $error->getMessage()); | 
            |
| 28 | }  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | 5 | parent::__construct($errors, Response::HTTP_BAD_REQUEST);  | 
            |
| 32 | 5 | }  | 
            |
| 33 | }  | 
            ||
| 34 | 
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.