diff --git a/classes/UpgradeTools/ModuleAdapter.php b/classes/UpgradeTools/ModuleAdapter.php index 46591df892..99ef95f624 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 302d07712d..fb0d53275d 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.#'