Skip to content

Commit

Permalink
Without any params this method does not make sense
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Apr 8, 2014
1 parent 8d47ef4 commit fdc42a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Set.php
Expand Up @@ -735,7 +735,7 @@ public static function contains($val1, $val2 = null) {
* @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) {
Expand Down

0 comments on commit fdc42a2

Please sign in to comment.