Change Hash callback class reference on filter method

This commit is contained in:
Diego Surita 2023-12-19 19:20:48 +00:00 committed by Kamil Wylegala
parent 7acb7c2938
commit b4e0e7f080

View file

@ -561,7 +561,7 @@ class Hash {
* @return array Filtered array * @return array Filtered array
* @link https://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::filter * @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) { foreach ($data as $k => $v) {
if (is_array($v)) { if (is_array($v)) {
$data[$k] = static::filter($v, $callback); $data[$k] = static::filter($v, $callback);