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 d4b5173 commit 1426dbeCopy full SHA for 1426dbe
Secrets/SodiumVault.php
@@ -52,7 +52,7 @@ public function generateKeys(bool $override = false): bool
52
53
try {
54
$this->loadKeys();
55
- } catch (\LogicException $e) {
+ } catch (\RuntimeException $e) {
56
// ignore failures to load keys
57
}
58
@@ -186,7 +186,7 @@ private function loadKeys(): void
186
} elseif ('' !== $this->decryptionKey) {
187
$this->encryptionKey = sodium_crypto_box_publickey($this->decryptionKey);
188
} else {
189
- throw new \LogicException(sprintf('Encryption key not found in "%s".', \dirname($this->pathPrefix)));
+ throw new \RuntimeException(sprintf('Encryption key not found in "%s".', \dirname($this->pathPrefix)));
190
191
192
0 commit comments