From c25325055e55db5d6ea92935fb2680640dc81bbb Mon Sep 17 00:00:00 2001 From: Diego Surita Date: Tue, 19 Dec 2023 19:20:48 +0000 Subject: [PATCH] Change Hash callback class reference on filter method --- lib/Cake/Utility/Hash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Utility/Hash.php b/lib/Cake/Utility/Hash.php index fc87bc46d..b2396f5d5 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(Hash::class, '_filter')) { + public static function filter(array $data, $callback = array('Hash', '_filter')) { foreach ($data as $k => $v) { if (is_array($v)) { $data[$k] = static::filter($v, $callback);