Skip to content

Commit 02188a7

Browse files
committed
fix: add null check
1 parent c27ec88 commit 02188a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Commands/Setup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ private function setupEmail(): void
317317
}
318318

319319
$config = new EmailConfig();
320-
$fromEmail = $config->fromEmail;
321-
$fromName = $config->fromName;
320+
$fromEmail = (string) $config->fromEmail; // Old Config may return null.
321+
$fromName = (string) $config->fromName;
322322

323323
if ($fromEmail !== '' && $fromName !== '') {
324324
$this->write(CLI::color(' Email Setup: ', 'green') . 'Everything is fine.');

0 commit comments

Comments
 (0)