10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd742a commit 2f608b4Copy full SHA for 2f608b4
src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php
@@ -47,7 +47,9 @@ public function generateKeys(bool $override = false): bool
47
$this->lastMessage = null;
48
49
if (null === $this->encryptionKey && '' !== $this->decryptionKey = (string) $this->decryptionKey) {
50
- throw new \LogicException('Cannot generate keys when a decryption key has been provided while instantiating the vault.');
+ $this->lastMessage = 'Cannot generate keys when a decryption key has been provided while instantiating the vault.';
51
+
52
+ return false;
53
}
54
55
try {
0 commit comments