We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97a5e9c commit 925875bCopy full SHA for 925875b
src/Encryption/Encryption.php
@@ -58,15 +58,15 @@ public static function create(
58
$privateKey = $filesystem->readFile($privateKeyPath);
59
$publicKey = $filesystem->readFile($publicKeyPath);
60
$rotatedKeys = array_map(
61
- static fn (string $rotatedKeyPath): string => $filesystem->readFile($rotatedKeyPath),
+ $filesystem->readFile(...),
62
$rotatedKeyPaths
63
);
64
}
65
66
$binaryPrivateKey = sodium_hex2bin((string) $privateKey);
67
$binaryPublicKey = sodium_hex2bin((string) $publicKey);
68
$binaryRotatedKeys = array_map(
69
- static fn (string $rotatedKey): string => sodium_hex2bin($rotatedKey),
+ sodium_hex2bin(...),
70
$rotatedKeys,
71
72
0 commit comments