summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Hird.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Hird.php b/src/Hird.php
index 1671619..305356c 100644
--- a/src/Hird.php
+++ b/src/Hird.php
@@ -52,7 +52,6 @@ class Hird
private array $rules,
) {
$this->registerDefaultValidators();
- $this->validate();
}
/**
@@ -126,6 +125,8 @@ class Hird
*/
public function fails(): bool
{
+ $this->validate();
+
return count($this->errors) !== 0;
}