This commit is contained in:
Maxime Renou
2019-03-01 12:48:14 +01:00
parent b9851a2c69
commit a4120bbc60

View File

@@ -84,10 +84,10 @@ class Validator
{ {
$errors = []; $errors = [];
foreach ($this->errors as $field => $error) foreach ($this->errors as $field => $field_errors)
{ {
$errors[$field] = [ $errors[$field] = [
'error' => "validator.".$errors[0].(!is_null($this->context) ? ':'.$this->context : '') 'error' => "validator.".$field_errors[0].(!is_null($this->context) ? ':'.$this->context : '')
]; ];
} }