Skip to content

Commit

Permalink
Fix Hash class callback callable pattern deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosurita authored and kamilwylegala committed Dec 19, 2023
1 parent e712b2d commit 7acb7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7acb7c2

Please sign in to comment.