From 7acb7c2938b4c71856b2c48bb0d5f81d5260ac40 Mon Sep 17 00:00:00 2001 From: Diego Surita Date: Tue, 19 Dec 2023 19:07:45 +0000 Subject: [PATCH] Fix Hash class callback callable pattern deprecated --- 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 84c706aee..fc87bc46d 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('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);