The expression return $this->exceptions could return the type null which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.
Loading history...
56
}
57
58
public function getI18n(): LocalizationInfo
59
{
60
return new LocalizationInfo('general.validation', ['errors' => $this->getErrors()]);