diff --git a/lib/Cake/Utility/Hash.php b/lib/Cake/Utility/Hash.php index 84c706aee..fc87bc46d 100644 --- a/lib/Cake/Utility/Hash.php +++ b/lib/Cake/Utility/Hash.php @@ -561,7 +561,7 @@ public static function check(array $data, $path) { * @return array Filtered array * @link https://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::filter */ - public static function filter(array $data, $callback = array('self', '_filter')) { + public static function filter(array $data, $callback = array(Hash::class, '_filter')) { foreach ($data as $k => $v) { if (is_array($v)) { $data[$k] = static::filter($v, $callback);