public function getErrors() { $errors = []; foreach ($this->getControls() as $control) { $errors = array_merge($errors, $control->getErrors()); } return array_unique($errors); }
/** * Returns global validation errors. * @return array */ public function getErrors() { return array_unique(array_merge($this->errors, parent::getErrors())); }