From 99e447c15aa4349a36d349ea1beb5044cc915924 Mon Sep 17 00:00:00 2001 From: kingIZZZY Date: Sun, 29 Dec 2024 00:14:30 -0500 Subject: [PATCH] fix "strlen(): Argument #1 ($string) must be of type string, null given" --- src/encryption/src/Commands/KeyGenerateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encryption/src/Commands/KeyGenerateCommand.php b/src/encryption/src/Commands/KeyGenerateCommand.php index b31ff24..f86551c 100644 --- a/src/encryption/src/Commands/KeyGenerateCommand.php +++ b/src/encryption/src/Commands/KeyGenerateCommand.php @@ -70,7 +70,7 @@ protected function setKeyInEnvironmentFile(string $key): bool $currentKey = $this->config->get('app.key') ?: $this->config->get('encryption.key'); - if (strlen($currentKey) !== 0 && (! $this->confirmToProceed())) { + if (strlen($currentKey ?: '') !== 0 && (! $this->confirmToProceed())) { return false; }