Browse Source

Merge pull request #3260 from dereuromark/2.5-count-dim

Without any params this method does not make sense
Mark Story 12 years ago
parent
commit
bb7b450404
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Utility/Set.php

+ 1 - 1
lib/Cake/Utility/Set.php

@@ -735,7 +735,7 @@ class Set {
  * @return integer The number of dimensions in $array
  * @link http://book.cakephp.org/2.0/en/core-utility-libraries/set.html#Set::countDim
  */
-	public static function countDim($array = null, $all = false, $count = 0) {
+	public static function countDim($array, $all = false, $count = 0) {
 		if ($all) {
 			$depth = array($count);
 			if (is_array($array) && reset($array) !== false) {