diff options
Diffstat (limited to 'src/Service/FormValidation.php')
| -rw-r--r-- | src/Service/FormValidation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Service/FormValidation.php b/src/Service/FormValidation.php index d91aa12..9f4564f 100644 --- a/src/Service/FormValidation.php +++ b/src/Service/FormValidation.php | |||
| @@ -46,7 +46,7 @@ class FormValidation | |||
| 46 | public function validate(): bool | 46 | public function validate(): bool |
| 47 | { | 47 | { |
| 48 | $this->error = ($this->callStrategy)(); // appel de la callback | 48 | $this->error = ($this->callStrategy)(); // appel de la callback |
| 49 | return empty($this->errors); | 49 | return $this->error === null; |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | public function getError(): string | 52 | public function getError(): string |
