Add PHPStan configuration for Symfony4 tests

- Created a new phpstan.neon file in the Symfony4 tests directory.
- Configured paths and excluded Symfony3 directory.
- Added bootstrap files for autoloading.
- Set dynamic constant names and adjusted reporting settings.
- Established PHPStan level to 6 for stricter analysis.
This commit is contained in:
2026-02-09 23:14:09 +01:00
parent 58947ad589
commit 3bd8164d3d
169 changed files with 4964 additions and 3877 deletions

View File

@@ -22,9 +22,7 @@ class EmpikMarketplace extends Module
'displayAdminOrderLeft',
];
const HOOK_LIST_8 = [
'actionBeforeUpgradeModule',
];
const HOOK_LIST_8 = [];
const HOOK_LIST_17 = [
'actionOrderGridDefinitionModifier',
@@ -44,7 +42,7 @@ class EmpikMarketplace extends Module
public function __construct()
{
$this->name = 'empikmarketplace';
$this->version = '2.0.2';
$this->version = '2.3.0';
$this->author = 'Waynet';
$this->tab = 'market_place';
$this->need_instance = 0;
@@ -76,11 +74,8 @@ class EmpikMarketplace extends Module
{
$return = true;
$currentVersion = VersionHelper::getInstalledVersion($this);
$return &= parent::install();
$return &= $this->getInstaller()->install();
$return &= (new \Empik\Marketplace\Update\UpdateRunner($currentVersion, $this))->run();
return (bool)$return;
}
@@ -245,22 +240,6 @@ class EmpikMarketplace extends Module
return $this->getHookAction()->hookActionObjectProductDeleteBefore($params);
}
public function hookActionBeforeUpgradeModule($params)
{
if (!isset($params['moduleName']) || !empty($params['source'])) {
return;
}
if ($params['moduleName'] != $this->name) {
return;
}
$currentVersion = VersionHelper::getInstalledVersion($this);
$runner = new Empik\Marketplace\Update\UpdateRunner($currentVersion, $this);
return $runner->run();
}
public function setAuthStatus()
{
$env = Configuration::get(Empik\Marketplace\Adapter\ConfigurationAdapter::CONF_ENVIRONMENT);
@@ -281,4 +260,9 @@ class EmpikMarketplace extends Module
return $status === md5($env.$apiKey);
}
public function getContent()
{
Tools::redirectAdmin($this->context->link->getAdminLink('AdminEmpikConnection'));
}
}