Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class FormException extends HttpException |
||
21 | { |
||
22 | protected FormInterface $form; |
||
23 | |||
24 | public function __construct( |
||
25 | FormInterface $form, |
||
26 | string $message = 'Invalid Form Data', |
||
27 | int $statusCode = Response::HTTP_UNPROCESSABLE_ENTITY, |
||
28 | \Exception $previous = null, |
||
29 | array $headers = [], |
||
30 | ?int $code = 0 |
||
31 | ) { |
||
32 | parent::__construct($statusCode, $message, $previous, $headers, $code); |
||
33 | |||
34 | $this->form = $form; |
||
35 | } |
||
36 | |||
37 | public function getForm(): FormInterface |
||
40 | } |
||
41 | |||
42 | public function getErrors(): FormErrorIterator |
||
45 | } |
||
46 | } |
||
47 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths