| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | */ |
| 28 | 28 | public function __construct( |
| 29 | 29 | $message = 'validation_failed', |
| 30 | 30 | $code = 0, |
| 31 | - Exception $previous = null, | |
| 31 | + ?Exception $previous = null, | |
| 32 | 32 | array $fieldErrors = [] |
| 33 | 33 | ) { |
| 34 | 34 | parent::__construct($message, $code, $previous); |
| 35 | 35 | $this->fieldErrors = $fieldErrors; |