Browse Source

Merge pull request #16018 from cakephp/othercorey-patch-1

Use full class instead of self for callable
ADmad 4 years ago
parent
commit
adb63fef6b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Utility/Hash.php

+ 1 - 1
src/Utility/Hash.php

@@ -649,7 +649,7 @@ class Hash
      * @return array Filtered array
      * @link https://book.cakephp.org/4/en/core-libraries/hash.html#Cake\Utility\Hash::filter
      */
-    public static function filter(array $data, $callback = ['self', '_filter']): array
+    public static function filter(array $data, $callback = [Hash::class, '_filter']): array
     {
         foreach ($data as $k => $v) {
             if (is_array($v)) {