Skip to content

Commit 25b8597

Browse files
committed
Add more #[\SensitiveParameter]
1 parent ff1f851 commit 25b8597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Secrets/SodiumVault.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class SodiumVault extends AbstractVault implements EnvVarLoaderInterface
3030
* @param $decryptionKey A string or a stringable object that defines the private key to use to decrypt the vault
3131
* or null to store generated keys in the provided $secretsDir
3232
*/
33-
public function __construct(string $secretsDir, string|\Stringable $decryptionKey = null)
33+
public function __construct(string $secretsDir, #[\SensitiveParameter] string|\Stringable $decryptionKey = null)
3434
{
3535
$this->pathPrefix = rtrim(strtr($secretsDir, '/', \DIRECTORY_SEPARATOR), \DIRECTORY_SEPARATOR).\DIRECTORY_SEPARATOR.basename($secretsDir).'.';
3636
$this->decryptionKey = $decryptionKey;

0 commit comments

Comments
 (0)