diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index e6f2ad2..046de26 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -91,9 +91,11 @@ jobs: # PrestaShop 9.0.x supports PHP 8.1 up to 8.4 (8.5 is not supported) - { presta_version: '9.0.3', php_version: '8.1' } - { presta_version: '9.0.3', php_version: '8.4' } - # PrestaShop 9.1.x and develop support PHP 8.1 up to 8.5 - - { presta_version: '9.1.4', php_version: '8.1' } - - { presta_version: '9.1.4', php_version: '8.5' } + # PrestaShop 9.1.5, 9.2.x and develop support PHP 8.1 up to 8.5 + - { presta_version: '9.1.5', php_version: '8.1' } + - { presta_version: '9.1.5', php_version: '8.5' } + - { presta_version: '9.2.x', php_version: '8.1' } + - { presta_version: '9.2.x', php_version: '8.5' } - { presta_version: 'develop', php_version: '8.1' } - { presta_version: 'develop', php_version: '8.5' } fail-fast: false diff --git a/tests/php/phpstan/phpstan-9.1.4.neon b/tests/php/phpstan/phpstan-9.1.5.neon similarity index 100% rename from tests/php/phpstan/phpstan-9.1.4.neon rename to tests/php/phpstan/phpstan-9.1.5.neon diff --git a/tests/php/phpstan/phpstan-9.2.x.neon b/tests/php/phpstan/phpstan-9.2.x.neon new file mode 100644 index 0000000..914a4e6 --- /dev/null +++ b/tests/php/phpstan/phpstan-9.2.x.neon @@ -0,0 +1,15 @@ +includes: + - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon + +parameters: + ignoreErrors: + # Framework / structural limitations that cannot be fixed in module code: + # - uninstallModule() calls parent::uninstall() through a closure rebound to the + # target module via Closure::bindTo(), a pattern PHPStan cannot statically resolve. + # - Cookie uses magic __get/__set, so its dynamic properties are undefined to PHPStan. + # - HookInterface mandates the constructor signature (Ps_Googleanalytics $module, Context), + # so $module must be stored even in hooks that never read it back. + - '#PrestaShop\\Module\\Ps_Googleanalytics\\Handler\\ModuleHandler::uninstallModule\(\) calls parent::uninstall\(\) but PrestaShop\\Module\\Ps_Googleanalytics\\Handler\\ModuleHandler does not extend any class.#' + - '#Access to an undefined property Cookie\:\:\$ga_admin_order.#' + - '#Access to an undefined property Cookie\:\:\$ga_admin_refund.#' + - '#Property PrestaShop\\Module\\Ps_Googleanalytics\\Hooks\\HookActionValidateOrder::\$module is never read, only written\.#'