From 9f24d72f639a72a51bb267f7ed5a8528a652a76d Mon Sep 17 00:00:00 2001 From: matthieu-rolland Date: Wed, 31 Aug 2022 16:56:08 +0200 Subject: [PATCH] test phpstan --- classes/UpgradeTools/ModuleAdapter.php | 15 --------------- tests/phpstan/phpstan-latest.neon | 2 -- 2 files changed, 17 deletions(-) diff --git a/classes/UpgradeTools/ModuleAdapter.php b/classes/UpgradeTools/ModuleAdapter.php index 46591df89..99ef95f62 100644 --- a/classes/UpgradeTools/ModuleAdapter.php +++ b/classes/UpgradeTools/ModuleAdapter.php @@ -101,21 +101,6 @@ public function getCommandBus() return $this->commandBus; } - /** - * Available since PrestaShop 8.0 - */ - public function getModuleRepository() - { - if (null === $this->moduleRepository) { - $this->moduleRepository = $this->symfonyAdapter - ->initAppKernel() - ->getContainer() - ->get('prestashop.adapter.module.repository.module_repository'); - } - - return $this->moduleRepository; - } - /** * Upgrade action, disabling all modules not made by PrestaShop. * diff --git a/tests/phpstan/phpstan-latest.neon b/tests/phpstan/phpstan-latest.neon index 302d07712..fb0d53275 100644 --- a/tests/phpstan/phpstan-latest.neon +++ b/tests/phpstan/phpstan-latest.neon @@ -2,8 +2,6 @@ includes: - %currentWorkingDirectory%/tests/phpstan/phpstan.neon parameters: - excludes_analyse: - - ./../../classes/UpgradeTools/CoreUpgrader/CoreUpgrader80.php ignoreErrors: - '#Access to an undefined property Module::\$installed.#' - '#Call to method fetchLocale\(\) on an unknown class PrestaShop\\PrestaShop\\Core\\Cldr\\Update.#'