We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6c8ec2 + d0c7b81 commit b116093Copy full SHA for b116093
1 file changed
src/SettingsApiFactory.php
@@ -5,7 +5,7 @@
5
namespace Dwnload\WpSettingsApi;
6
7
use Dwnload\WpSettingsApi\Api\PluginSettings;
8
-use TheFrosty\WpUtilities\Api\Hash;
+use function hash;
9
use function json_encode;
10
11
/**
@@ -44,8 +44,6 @@ public static function create(array $fields): PluginSettings
44
*/
45
private static function getId(array $fields): string
46
{
47
- return (new class {
48
- use Hash;
49
- })->getHashedKey(json_encode($fields));
+ return hash('sha256', json_encode($fields));
50
}
51
0 commit comments