Skip to content

Commit 175eadb

Browse files
committed
Update section register/override rule
1 parent 0817b4f commit 175eadb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ $validation = $validator->validate($_POST, [
666666
</details>
667667

668668

669-
## Register/Modify Rule
669+
## Register/Override Rule
670670

671671
Another way to use custom validation rule is to create a class extending `Rakit\Validation\Rule`.
672672
Then register it using `setValidator` or `addValidator`.
@@ -693,7 +693,7 @@ class UniqueRule extends Rule
693693
$this->pdo = $pdo;
694694
}
695695

696-
public function check($value)
696+
public function check($value): bool
697697
{
698698
// make sure required parameters exists
699699
$this->requireParameters(['table', 'column']);

0 commit comments

Comments
 (0)