Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 8aba05e

Browse files
authored
Update validator-chains.md
The flag for `$breakChainOnFailure` should be second parameter to `attach` method, not `StringLength`.
1 parent 87e743d commit 8aba05e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/book/validator-chains.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ written as follows, then the alphanumeric validation would not occur if the
4343
string length validation fails:
4444

4545
```php
46-
$chain->attach(new StringLength(['min' => 6, 'max' => 12], true));
46+
$chain->attach(new StringLength(['min' => 6, 'max' => 12]), true);
4747
$chain->attach(new Alnum());
4848
```
4949

0 commit comments

Comments
 (0)