diff --git a/controllers/admin/AdminMollieSettingsController.php b/controllers/admin/AdminMollieSettingsController.php index 73905ace5..5677d077c 100644 --- a/controllers/admin/AdminMollieSettingsController.php +++ b/controllers/admin/AdminMollieSettingsController.php @@ -227,17 +227,13 @@ private function setEnvironmentForCloudSync(): void return; } - /* @phpstan-ignore-next-line */ /** @var \Ps_eventbus $eventbusModule */ $eventbusModule = \Module::getInstanceByName('ps_eventbus'); - /* @phpstan-ignore-next-line */ if (version_compare($eventbusModule->version, '1.9.0', '>=')) { - /* @phpstan-ignore-next-line */ /** @var PresenterService $eventbusPresenterService */ $eventbusPresenterService = $eventbusModule->getService(PresenterService::class); - /* @phpstan-ignore-next-line */ Media::addJsDef([ 'contextPsEventbus' => $eventbusPresenterService->expose($this->module, ['orders']), ]); diff --git a/mollie.php b/mollie.php index f8d4adcfa..540be3049 100755 --- a/mollie.php +++ b/mollie.php @@ -185,7 +185,7 @@ public function install() $moduleManager = ModuleManagerBuilder::getInstance()->build(); try { - /** + /* * NOTE: install method upgrades the module if there is a newer version */ if ( diff --git a/tests/phpstan/phpstan_base.neon b/tests/phpstan/phpstan_base.neon index bde2361d4..9b99bc5b2 100644 --- a/tests/phpstan/phpstan_base.neon +++ b/tests/phpstan/phpstan_base.neon @@ -42,5 +42,7 @@ parameters: - '#Parameter \#1 \$value of method ControllerCore\:\:ajaxRender\(\) expects null, string\|false given.#' - '#Call to function is_subclass_of\(\) with.*will always evaluate to false.#' - '#Call to function is_array\(\) with.*will always evaluate to false.#' + - '#ps_eventbus#' + - '#PsEventbus#' level: 5