From e784c1271dddb85359bbe7df865e5385b2c0ff93 Mon Sep 17 00:00:00 2001 From: mattgoud Date: Fri, 28 Aug 2026 15:13:27 +0200 Subject: [PATCH] CI: pin PrestaShop 9.1.5 and add 9.2.x to the PHPStan matrix 9.1.5 is the last release of the 9.1 line, the 9.1.x branch having been deleted from the core once it shipped. 9.2.x joins the matrix so this module has the same coverage as the rest of the Epic. --- .github/workflows/php.yml | 2 +- .../{phpstan-9.1.4.neon => phpstan-9.1.5.neon} | 0 tests/phpstan/phpstan-9.2.x.neon | 13 +++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) rename tests/phpstan/{phpstan-9.1.4.neon => phpstan-9.1.5.neon} (100%) create mode 100644 tests/phpstan/phpstan-9.2.x.neon diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 2960a1a..a0a8e38 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -84,7 +84,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - presta_version: ['9.1.4', 'develop'] + presta_version: ['9.1.5', '9.2.x', 'develop'] php_version: ['8.1', '8.5'] fail-fast: false env: diff --git a/tests/phpstan/phpstan-9.1.4.neon b/tests/phpstan/phpstan-9.1.5.neon similarity index 100% rename from tests/phpstan/phpstan-9.1.4.neon rename to tests/phpstan/phpstan-9.1.5.neon diff --git a/tests/phpstan/phpstan-9.2.x.neon b/tests/phpstan/phpstan-9.2.x.neon new file mode 100644 index 0000000..be1fde7 --- /dev/null +++ b/tests/phpstan/phpstan-9.2.x.neon @@ -0,0 +1,13 @@ +includes: + - %currentWorkingDirectory%/tests/phpstan/phpstan.neon + +parameters: + ignoreErrors: + - '#Strict comparison using === between null and mixed will always evaluate to false\.#' + - '#Call to method addJS\(\) on an unknown class PrestaShop\\PrestaShop\\Core\\Context\\LegacyControllerContext\.#' + - '#Call to method addCSS\(\) on an unknown class PrestaShop\\PrestaShop\\Core\\Context\\LegacyControllerContext\.#' + - '#Call to method getLanguages\(\) on an unknown class PrestaShop\\PrestaShop\\Core\\Context\\LegacyControllerContext\.#' + - '#Access to property \$php_self on an unknown class PrestaShop\\PrestaShop\\Core\\Context\\LegacyControllerContext\.#' + - '#Parameter \$request of method PrestaShop\\Module\\Psgdpr\\Controller\\Admin\\[a-zA-Z]+::[a-zA-Z]+\(\) has invalid type Symfony\\Component\\HttpFoundation\\Request\.#' + - '#Call to method getContent\(\) on an unknown class Symfony\\Component\\HttpFoundation\\Request\.#' + - '#Call to an undefined static method CartRule::getAllCustomerCartRules\(\)\.#'