From 3adf697cf2f84895148bdf0942205af7d3f09559 Mon Sep 17 00:00:00 2001 From: mandan2 Date: Tue, 17 Oct 2023 14:06:18 +0300 Subject: [PATCH] phpstan --- src/Install/DatabaseTableInstaller.php | 2 +- src/Install/Installer.php | 2 +- src/Install/InstallerInterface.php | 5 +---- src/Install/PrestaShopDependenciesInstall.php | 4 +++- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Install/DatabaseTableInstaller.php b/src/Install/DatabaseTableInstaller.php index b931e2b5c..972e0e737 100644 --- a/src/Install/DatabaseTableInstaller.php +++ b/src/Install/DatabaseTableInstaller.php @@ -20,7 +20,7 @@ final class DatabaseTableInstaller implements InstallerInterface { - public function install() + public function install(): bool { $commands = $this->getCommands(); diff --git a/src/Install/Installer.php b/src/Install/Installer.php index 49fabbf5d..43091bc88 100644 --- a/src/Install/Installer.php +++ b/src/Install/Installer.php @@ -81,7 +81,7 @@ public function __construct( $this->orderStateInstaller = $orderStateInstaller; } - public function install() + public function install(): bool { $this->segment->setMessage('Mollie installed'); $this->segment->track(); diff --git a/src/Install/InstallerInterface.php b/src/Install/InstallerInterface.php index 1d773e9ff..e2afd5fde 100644 --- a/src/Install/InstallerInterface.php +++ b/src/Install/InstallerInterface.php @@ -18,8 +18,5 @@ interface InstallerInterface { - /** - * @return bool - */ - public function install(); + public function install(): bool; } diff --git a/src/Install/PrestaShopDependenciesInstall.php b/src/Install/PrestaShopDependenciesInstall.php index ce4652ebe..0cd266d76 100644 --- a/src/Install/PrestaShopDependenciesInstall.php +++ b/src/Install/PrestaShopDependenciesInstall.php @@ -23,7 +23,7 @@ public function __construct( /** * @throws CouldNotInstallPrestaShopDependencies */ - public function install(): void + public function install(): bool { $mboStatus = (new Presenter())->present(); @@ -40,6 +40,8 @@ public function install(): void } catch (\Throwable $exception) { throw CouldNotInstallPrestaShopDependencies::failedToInstallDependencies($exception); } + + return true; } /**