mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add a note to offsetSet() on why it cannot chain.
This commit is contained in:
parent
2dd57c7191
commit
cb0ac6f9f3
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 CakeValidationRule|array rule to add to $index
|
||||
|
|
Loading…
Reference in a new issue