Skip to content

Commit

Permalink
[#14551] - Added default value to Arr::validateAll and Arr::validateAny
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Nov 22, 2019
1 parent 5f09739 commit abf0dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phalcon/Helper/Arr.zep
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class Arr
*
* @return bool
*/
final public static function validateAll(array! collection, var method) -> bool
final public static function validateAll(array! collection, var method = null) -> bool
{
return count(self::filterCollection(collection, method)) === count(collection);
}
Expand All @@ -375,7 +375,7 @@ class Arr
*
* @return bool
*/
final public static function validateAny(array! collection, var method) -> bool
final public static function validateAny(array! collection, var method = null) -> bool
{
return count(self::filterCollection(collection, method)) > 0;
}
Expand Down

0 comments on commit abf0dc7

Please sign in to comment.