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\(\)\.#'