Skip to content
Permalink
Browse files

Add a note to offsetSet() on why it cannot chain.

  • Loading branch information...
dereuromark committed Apr 6, 2014
1 parent 2dd57c7 commit cb0ac6f9f334217e4e33b072b1958dcf3d47bc50
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/Cake/Model/Validator/CakeValidationSet.php
@@ -325,7 +325,12 @@ public function offsetGet($index) {
}
/**
* 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

0 comments on commit cb0ac6f

Please sign in to comment.
You can’t perform that action at this time.