mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Merge pull request #3248 from dereuromark/2.5-validation
2.5 validation method chaining
This commit is contained in:
commit
7c3390b0d7
1 changed files with 6 additions and 1 deletions
|
@ -325,7 +325,12 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets or replace a validation rule
|
* Sets or replace a validation rule.
|
||||||
|
*
|
||||||
|
* This is a wrapper for ArrayAccess. Use setRule() directly for
|
||||||
|
* chainable access.
|
||||||
|
*
|
||||||
|
* @see http://www.php.net/manual/en/arrayobject.offsetset.php
|
||||||
*
|
*
|
||||||
* @param string $index name of the rule
|
* @param string $index name of the rule
|
||||||
* @param CakeValidationRule|array rule to add to $index
|
* @param CakeValidationRule|array rule to add to $index
|
||||||
|
|
Loading…
Add table
Reference in a new issue