We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0817b4f commit 175eadbCopy full SHA for 175eadb
README.md
@@ -666,7 +666,7 @@ $validation = $validator->validate($_POST, [
666
</details>
667
668
669
-## Register/Modify Rule
+## Register/Override Rule
670
671
Another way to use custom validation rule is to create a class extending `Rakit\Validation\Rule`.
672
Then register it using `setValidator` or `addValidator`.
@@ -693,7 +693,7 @@ class UniqueRule extends Rule
693
$this->pdo = $pdo;
694
}
695
696
- public function check($value)
+ public function check($value): bool
697
{
698
// make sure required parameters exists
699
$this->requireParameters(['table', 'column']);
0 commit comments