From 816543207766c100450ed5dd0d9f3cb948916d8d Mon Sep 17 00:00:00 2001 From: Ibrahima SOW Date: Tue, 14 Nov 2023 11:13:56 +0000 Subject: [PATCH] phpstan --- src/DependencyBuilder.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/DependencyBuilder.php b/src/DependencyBuilder.php index db84dbf..f8c5b34 100644 --- a/src/DependencyBuilder.php +++ b/src/DependencyBuilder.php @@ -247,9 +247,7 @@ protected function isMboNeeded() /** * @param bool $addRoutes * - * @return array{ - * array{}|array{ps_mbo: array} - * } + * @return array{}|array{ps_mbo: array} * * @throws \Exception */ @@ -257,7 +255,7 @@ private function getDependencies($addRoutes = false) { $dependenciesContent = $this->getDependenciesSpecification(); - if (empty($dependenciesContent['dependencies']) || !is_array($dependenciesContent['dependencies'])) { + if (!is_array($dependenciesContent) || empty($dependenciesContent['dependencies'])) { return [ Installer::MODULE_NAME => $this->addMboInDependencies(), ];