From b4e0e7f08067470cfa6ae847e0144d674d3847a5 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 @@ class Hash { * @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);