Skip to content

Commit

Permalink
Change Hash callback class reference on filter method
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosurita authored and kamilwylegala committed Dec 19, 2023
1 parent 7acb7c2 commit b4e0e7f
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(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);
Expand Down

0 comments on commit b4e0e7f

Please sign in to comment.