Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

fix "strlen(): Argument #1 ($string) must be of type string, null given" #44

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix "strlen(): Argument #1 ($string) must be of type string, null given"
kingIZZZY authored Dec 29, 2024
commit 99e447c15aa4349a36d349ea1beb5044cc915924
2 changes: 1 addition & 1 deletion src/encryption/src/Commands/KeyGenerateCommand.php
Original file line number Diff line number Diff line change
@@ -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;
}