From 4712a826d155e7710aa1332b3e4fee790f600e42 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 16 Apr 2023 07:38:54 +0200 Subject: [PATCH] Fix method name --- .../Commands/System/UpgradeFireflyInstructions.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/System/UpgradeFireflyInstructions.php b/app/Console/Commands/System/UpgradeFireflyInstructions.php index c9cfb0b572..e0ab1837c7 100644 --- a/app/Console/Commands/System/UpgradeFireflyInstructions.php +++ b/app/Console/Commands/System/UpgradeFireflyInstructions.php @@ -77,14 +77,15 @@ class UpgradeFireflyInstructions extends Command $text = ''; foreach (array_keys($config) as $compare) { // if string starts with: - if (str_starts_with($version, $compare)) { + if (\str_starts_with($version, $compare)) { $text = $config[$compare]; } + } $this->showLine(); $this->boxed(''); - if (null === $text) { + if (null === $text || '' === $text) { $this->boxed(sprintf('Thank you for updating to Firefly III, v%s', $version)); $this->boxedInfo('There are no extra upgrade instructions.'); $this->boxed('Firefly III should be ready for use.'); @@ -148,13 +149,13 @@ class UpgradeFireflyInstructions extends Command $text = ''; foreach (array_keys($config) as $compare) { // if string starts with: - if (str_starts_with($version, $compare)) { + if (\str_starts_with($version, $compare)) { $text = $config[$compare]; } } $this->showLine(); $this->boxed(''); - if (null === $text) { + if (null === $text || '' === $text) { $this->boxed(sprintf('Thank you for installing Firefly III, v%s!', $version)); $this->boxedInfo('There are no extra installation instructions.'); $this->boxed('Firefly III should be ready for use.');