From cb0ac6f9f334217e4e33b072b1958dcf3d47bc50 Mon Sep 17 00:00:00 2001 From: euromark Date: Sun, 6 Apr 2014 22:59:18 +0200 Subject: [PATCH] Add a note to offsetSet() on why it cannot chain. --- lib/Cake/Model/Validator/CakeValidationSet.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Model/Validator/CakeValidationSet.php b/lib/Cake/Model/Validator/CakeValidationSet.php index 09475362f..80b9a79cc 100644 --- a/lib/Cake/Model/Validator/CakeValidationSet.php +++ b/lib/Cake/Model/Validator/CakeValidationSet.php @@ -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