From 74d0ba492fd5e1cbcc0f6a9cc92c4f878fb5f30d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Fri, 14 Nov 2025 12:21:05 +0100 Subject: [PATCH 01/24] Modify user agent handling in contact form Adjust user agent length based on PrestaShop version. --- contactform.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/contactform.php b/contactform.php index 8866693..fbc6d6f 100644 --- a/contactform.php +++ b/contactform.php @@ -530,7 +530,16 @@ public function sendMessage() @chmod(_PS_UPLOAD_DIR_ . basename($file_attachment['rename']), 0664); } $cm->ip_address = (string) ip2long(Tools::getRemoteAddr()); - $cm->user_agent = $_SERVER['HTTP_USER_AGENT']; + + /* + * Adjust user agent length depending on PrestaShop version used. + * The limit was raised on 9.0.2. + */ + if (version_compare(_PS_VERSION_, '9.0.2', '>=')) { + $cm->user_agent = substr($_SERVER['HTTP_USER_AGENT'] ?? '', 0, 255); + } else { + $cm->user_agent = substr($_SERVER['HTTP_USER_AGENT'] ?? '', 0, 128); + } if (!$cm->add()) { $this->context->controller->errors[] = $this->trans( From 53cace9c277ba0c927ed52431e934b3db9c6ee48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Sat, 15 Nov 2025 10:00:23 +0100 Subject: [PATCH 02/24] Update php.yml --- .github/workflows/php.yml | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index a776b41..8574833 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.0.0 + uses: actions/checkout@v5 - name: PHP syntax checker 5.4 uses: prestashop/github-action-php-lint/5.6@master @@ -44,13 +44,7 @@ jobs: php-version: '7.4' - name: Checkout - uses: actions/checkout@v2.0.0 - - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: vendor - key: php-${{ hashFiles('composer.lock') }} + uses: actions/checkout@v5 - name: Install dependencies run: composer install @@ -63,6 +57,7 @@ jobs: name: PHPStan runs-on: ubuntu-latest strategy: + fail-fast: false matrix: presta-versions: ['1.7.2.5', '1.7.3.4', '1.7.4.4', '1.7.5.1', '1.7.6', '1.7.7', '1.7.8', 'latest'] steps: @@ -72,21 +67,7 @@ jobs: php-version: '7.4' - name: Checkout - uses: actions/checkout@v2.0.0 - - # Add vendor folder in cache to make next builds faster - - name: Cache vendor folder - uses: actions/cache@v1 - with: - path: vendor - key: php-${{ hashFiles('composer.lock') }} - - # Add composer local folder in cache to make next builds faster - - name: Cache composer folder - uses: actions/cache@v1 - with: - path: ~/.composer/cache - key: php-composer-cache + uses: actions/checkout@v5 - run: composer install From 07ce85301f32fdc89c72f1aae54385af6297fdb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Sun, 16 Nov 2025 22:51:06 +0100 Subject: [PATCH 03/24] Update contactform.php --- contactform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contactform.php b/contactform.php index fbc6d6f..739975a 100644 --- a/contactform.php +++ b/contactform.php @@ -54,7 +54,7 @@ public function __construct() $this->name = 'contactform'; $this->author = 'PrestaShop'; $this->tab = 'front_office_features'; - $this->version = '4.4.3'; + $this->version = '4.4.4'; $this->bootstrap = true; parent::__construct(); From 932c8ff92163c59da9872b4fbeefa173d9907bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Sun, 16 Nov 2025 22:51:12 +0100 Subject: [PATCH 04/24] Update version number to 4.4.4 --- config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.xml b/config.xml index 1d29563..04a175a 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ contactform - + From 6df340b923dbd3b6bef95daaa12f871e6b46601a Mon Sep 17 00:00:00 2001 From: Codencode Date: Thu, 12 Feb 2026 09:34:00 +0100 Subject: [PATCH 05/24] contactform: hide subject select when only one contact --- views/templates/widget/contactform.tpl | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/views/templates/widget/contactform.tpl b/views/templates/widget/contactform.tpl index 6a5c14a..60488b3 100644 --- a/views/templates/widget/contactform.tpl +++ b/views/templates/widget/contactform.tpl @@ -47,15 +47,19 @@ {if !$notifications || $notifications.nw_error}
- - + {if $contact.contacts|count === 1} + {assign var=firstContact value=current($contact.contacts)} + + {else} + + {/if} From 907f9f5d84027c6feb52bb02d40d5d2824a1dddf Mon Sep 17 00:00:00 2001 From: Thomas Roux Date: Wed, 18 Feb 2026 07:05:08 +0100 Subject: [PATCH 07/24] Fix CI --- .github/workflows/php.yml | 144 +++++++++++++++++------- tests/{ => php}/phpstan/index.php | 0 tests/php/phpstan/phpstan-8.1.7.neon | 2 + tests/php/phpstan/phpstan-8.2.x.neon | 2 + tests/php/phpstan/phpstan-9.0.x.neon | 2 + tests/php/phpstan/phpstan-develop.neon | 2 + tests/php/phpstan/phpstan.neon | 2 + tests/php/phpstan/prepend-constants.php | 11 ++ tests/phpstan.sh | 28 ----- tests/phpstan/phpstan-1.7.2.5.neon | 10 -- tests/phpstan/phpstan-1.7.3.4.neon | 10 -- tests/phpstan/phpstan-1.7.4.4.neon | 9 -- tests/phpstan/phpstan-1.7.5.1.neon | 9 -- tests/phpstan/phpstan-1.7.6.neon | 9 -- tests/phpstan/phpstan-1.7.7.neon | 7 -- tests/phpstan/phpstan-1.7.8.neon | 7 -- tests/phpstan/phpstan-latest.neon | 7 -- tests/phpstan/phpstan.neon | 11 -- 18 files changed, 123 insertions(+), 149 deletions(-) rename tests/{ => php}/phpstan/index.php (100%) create mode 100644 tests/php/phpstan/phpstan-8.1.7.neon create mode 100644 tests/php/phpstan/phpstan-8.2.x.neon create mode 100644 tests/php/phpstan/phpstan-9.0.x.neon create mode 100644 tests/php/phpstan/phpstan-develop.neon create mode 100644 tests/php/phpstan/phpstan.neon create mode 100644 tests/php/phpstan/prepend-constants.php delete mode 100755 tests/phpstan.sh delete mode 100644 tests/phpstan/phpstan-1.7.2.5.neon delete mode 100644 tests/phpstan/phpstan-1.7.3.4.neon delete mode 100644 tests/phpstan/phpstan-1.7.4.4.neon delete mode 100644 tests/phpstan/phpstan-1.7.5.1.neon delete mode 100644 tests/phpstan/phpstan-1.7.6.neon delete mode 100644 tests/phpstan/phpstan-1.7.7.neon delete mode 100644 tests/phpstan/phpstan-1.7.8.neon delete mode 100644 tests/phpstan/phpstan-latest.neon delete mode 100644 tests/phpstan/phpstan.neon diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 8574833..b484807 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -1,76 +1,136 @@ name: PHP tests on: [push, pull_request] jobs: - # Check there is no syntax errors in the project php-linter: - name: PHP Syntax check 5.4 => 8.1 + name: PHP Syntax check runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 - - - name: PHP syntax checker 5.4 - uses: prestashop/github-action-php-lint/5.6@master - - - name: PHP syntax checker 5.5 - uses: prestashop/github-action-php-lint/5.6@master - - - name: PHP syntax checker 5.6 - uses: prestashop/github-action-php-lint/5.6@master + uses: actions/checkout@v6 - name: PHP syntax checker 7.2 uses: prestashop/github-action-php-lint/7.2@master - - name: PHP syntax checker 7.3 - uses: prestashop/github-action-php-lint/7.3@master - - name: PHP syntax checker 7.4 uses: prestashop/github-action-php-lint/7.4@master - name: PHP syntax checker 8.0 uses: prestashop/github-action-php-lint/8.0@master - - name: PHP syntax checker 8.1 - uses: prestashop/github-action-php-lint/8.1@master + - name: PHP syntax checker 8.5 + uses: prestashop/github-action-php-lint/8.5@master # Check the PHP code follow the coding standards php-cs-fixer: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - - name: Setup PHP - uses: shivammathur/setup-php@v2 + - name: Run PHP-CS-Fixer + uses: PrestaShop/.github/.github/actions/php-ci/php-cs@master with: php-version: '7.4' - - name: Checkout - uses: actions/checkout@v5 - - - name: Install dependencies - run: composer install - - - name: Run PHP-CS-Fixer - run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no --diff-format udiff - - # Run PHPStan against the module and a PrestaShop release - phpstan: - name: PHPStan + # Run PHPStan against the module (PHP 7.4 – 8.1) + phpstan-74: + name: PHPStan (PHP 7.4 - 8.1) runs-on: ubuntu-latest strategy: + matrix: + presta_version: ['8.1.7', '8.2.x'] + php_version: ['7.4', '8.1'] fail-fast: false + env: + PHPRC: ${{ github.workspace }}/${{ github.event.repository.name }}/.phpstan-php-ini + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + path: ${{ github.event.repository.name }} + + - name: Prepare PHP env for PrestaShop 8 (define constants before any bootstrap) + run: | + mkdir -p ${{ github.event.repository.name }}/.phpstan-php-ini + { + echo "auto_prepend_file=$GITHUB_WORKSPACE/${{ github.event.repository.name }}/tests/php/phpstan/prepend-constants.php" + echo "memory_limit=512M" + } > ${{ github.event.repository.name }}/.phpstan-php-ini/php.ini + + - name: Run PHPStan + uses: PrestaShop/.github/.github/actions/php-ci/phpstan@master + with: + php-version: ${{ matrix.php_version }} + presta-version: ${{ matrix.presta_version }} + module-name: ${{ github.event.repository.name }} + phpstan-level: '5' + phpstan-config: tests/php/phpstan/phpstan-${{ matrix.presta_version }}.neon + phpstan-version: '^0.12' + composer-version: '2.2.18' + + # Run PHPStan against the module (PHP 8.1 – 8.4) + phpstan-80-84: + name: PHPStan (PHP 8.1 - 8.4) + runs-on: ubuntu-latest + strategy: matrix: - presta-versions: ['1.7.2.5', '1.7.3.4', '1.7.4.4', '1.7.5.1', '1.7.6', '1.7.7', '1.7.8', 'latest'] + presta_version: ['9.0.x'] + php_version: ['8.1', '8.4'] + fail-fast: false + env: + PHPRC: ${{ github.workspace }}/${{ github.event.repository.name }}/.phpstan-php-ini steps: - - name: Setup PHP - uses: shivammathur/setup-php@v2 + - name: Checkout repository + uses: actions/checkout@v6 with: - php-version: '7.4' - - - name: Checkout - uses: actions/checkout@v5 + path: ${{ github.event.repository.name }} + + - name: Prepare PHP env for PrestaShop 9.0.x (define constants before any bootstrap) + run: | + mkdir -p ${{ github.event.repository.name }}/.phpstan-php-ini + { + echo "auto_prepend_file=$GITHUB_WORKSPACE/${{ github.event.repository.name }}/tests/php/phpstan/prepend-constants.php" + echo "memory_limit=512M" + } > ${{ github.event.repository.name }}/.phpstan-php-ini/php.ini + + - name: Run PHPStan + uses: PrestaShop/.github/.github/actions/php-ci/phpstan@master + with: + php-version: ${{ matrix.php_version }} + presta-version: ${{ matrix.presta_version }} + module-name: ${{ github.event.repository.name }} + phpstan-level: '5' + phpstan-config: tests/php/phpstan/phpstan-${{ matrix.presta_version }}.neon - - run: composer install + # Run PHPStan against the module (PHP 8.1 – 8.5) + phpstan: + name: PHPStan (PHP 8.1 - 8.5) + runs-on: ubuntu-latest + strategy: + matrix: + presta_version: ['9.1.x', 'develop'] + php_version: ['8.1', '8.5'] + fail-fast: false + env: + PHPRC: ${{ github.workspace }}/${{ github.event.repository.name }}/.phpstan-php-ini + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + path: ${{ github.event.repository.name }} + + - name: Prepare PHP env for PrestaShop 9.1.x and later (define constants before any bootstrap) + run: | + mkdir -p ${{ github.event.repository.name }}/.phpstan-php-ini + { + echo "auto_prepend_file=$GITHUB_WORKSPACE/${{ github.event.repository.name }}/tests/php/phpstan/prepend-constants.php" + echo "memory_limit=512M" + } > ${{ github.event.repository.name }}/.phpstan-php-ini/php.ini + + - name: Run PHPStan + uses: PrestaShop/.github/.github/actions/php-ci/phpstan@master + with: + php-version: ${{ matrix.php_version }} + presta-version: ${{ matrix.presta_version }} + module-name: ${{ github.event.repository.name }} + phpstan-level: '5' + phpstan-config: tests/php/phpstan/phpstan-${{ matrix.presta_version }}.neon - # Docker images prestashop/prestashop may be used, even if the shop remains uninstalled - - name: Execute PHPStan on PrestaShop (Tag ${{ matrix.presta-versions }}) - run: ./tests/phpstan.sh ${{ matrix.presta-versions }} diff --git a/tests/phpstan/index.php b/tests/php/phpstan/index.php similarity index 100% rename from tests/phpstan/index.php rename to tests/php/phpstan/index.php diff --git a/tests/php/phpstan/phpstan-8.1.7.neon b/tests/php/phpstan/phpstan-8.1.7.neon new file mode 100644 index 0000000..481ff9f --- /dev/null +++ b/tests/php/phpstan/phpstan-8.1.7.neon @@ -0,0 +1,2 @@ +includes: + - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon \ No newline at end of file diff --git a/tests/php/phpstan/phpstan-8.2.x.neon b/tests/php/phpstan/phpstan-8.2.x.neon new file mode 100644 index 0000000..efa856c --- /dev/null +++ b/tests/php/phpstan/phpstan-8.2.x.neon @@ -0,0 +1,2 @@ +includes: + - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon diff --git a/tests/php/phpstan/phpstan-9.0.x.neon b/tests/php/phpstan/phpstan-9.0.x.neon new file mode 100644 index 0000000..481ff9f --- /dev/null +++ b/tests/php/phpstan/phpstan-9.0.x.neon @@ -0,0 +1,2 @@ +includes: + - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon \ No newline at end of file diff --git a/tests/php/phpstan/phpstan-develop.neon b/tests/php/phpstan/phpstan-develop.neon new file mode 100644 index 0000000..efa856c --- /dev/null +++ b/tests/php/phpstan/phpstan-develop.neon @@ -0,0 +1,2 @@ +includes: + - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon diff --git a/tests/php/phpstan/phpstan.neon b/tests/php/phpstan/phpstan.neon new file mode 100644 index 0000000..be11823 --- /dev/null +++ b/tests/php/phpstan/phpstan.neon @@ -0,0 +1,2 @@ + # Base PHPStan configuration for the moduleExpand commentComment on line R2ResolvedCode has comments. Press enter to view. + # This file is included by version-specific configs \ No newline at end of file diff --git a/tests/php/phpstan/prepend-constants.php b/tests/php/phpstan/prepend-constants.php new file mode 100644 index 0000000..733689a --- /dev/null +++ b/tests/php/phpstan/prepend-constants.php @@ -0,0 +1,11 @@ + given.#' - - '#Parameter \#1 \$hook_name of method ModuleCore\:\:registerHook\(\) expects string, array given.#' diff --git a/tests/phpstan/phpstan-1.7.3.4.neon b/tests/phpstan/phpstan-1.7.3.4.neon deleted file mode 100644 index f4b4198..0000000 --- a/tests/phpstan/phpstan-1.7.3.4.neon +++ /dev/null @@ -1,10 +0,0 @@ -includes: - - %currentWorkingDirectory%/tests/phpstan/phpstan.neon - -parameters: - ignoreErrors: - - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' - - '#Call to method assign\(\) on an unknown class Smarty_Data.#' - - '#Parameter \#4 \$templateVars of static method MailCore\:\:send\(\) expects string, array given.#' - - '#Parameter \#1 \$hook_name of method ModuleCore\:\:registerHook\(\) expects string, array given.#' diff --git a/tests/phpstan/phpstan-1.7.4.4.neon b/tests/phpstan/phpstan-1.7.4.4.neon deleted file mode 100644 index 4bb3d01..0000000 --- a/tests/phpstan/phpstan-1.7.4.4.neon +++ /dev/null @@ -1,9 +0,0 @@ -includes: - - %currentWorkingDirectory%/tests/phpstan/phpstan.neon - -parameters: - ignoreErrors: - - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' - - '#Parameter \#4 \$templateVars of static method MailCore\:\:send\(\) expects string, array given.#' - - '#Parameter \#1 \$hook_name of method ModuleCore\:\:registerHook\(\) expects string, array given.#' diff --git a/tests/phpstan/phpstan-1.7.5.1.neon b/tests/phpstan/phpstan-1.7.5.1.neon deleted file mode 100644 index 4bb3d01..0000000 --- a/tests/phpstan/phpstan-1.7.5.1.neon +++ /dev/null @@ -1,9 +0,0 @@ -includes: - - %currentWorkingDirectory%/tests/phpstan/phpstan.neon - -parameters: - ignoreErrors: - - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' - - '#Parameter \#4 \$templateVars of static method MailCore\:\:send\(\) expects string, array given.#' - - '#Parameter \#1 \$hook_name of method ModuleCore\:\:registerHook\(\) expects string, array given.#' diff --git a/tests/phpstan/phpstan-1.7.6.neon b/tests/phpstan/phpstan-1.7.6.neon deleted file mode 100644 index 4bb3d01..0000000 --- a/tests/phpstan/phpstan-1.7.6.neon +++ /dev/null @@ -1,9 +0,0 @@ -includes: - - %currentWorkingDirectory%/tests/phpstan/phpstan.neon - -parameters: - ignoreErrors: - - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' - - '#Parameter \#4 \$templateVars of static method MailCore\:\:send\(\) expects string, array given.#' - - '#Parameter \#1 \$hook_name of method ModuleCore\:\:registerHook\(\) expects string, array given.#' diff --git a/tests/phpstan/phpstan-1.7.7.neon b/tests/phpstan/phpstan-1.7.7.neon deleted file mode 100644 index 8b75660..0000000 --- a/tests/phpstan/phpstan-1.7.7.neon +++ /dev/null @@ -1,7 +0,0 @@ -includes: - - %currentWorkingDirectory%/tests/phpstan/phpstan.neon - -parameters: - ignoreErrors: - - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' diff --git a/tests/phpstan/phpstan-1.7.8.neon b/tests/phpstan/phpstan-1.7.8.neon deleted file mode 100644 index 8b75660..0000000 --- a/tests/phpstan/phpstan-1.7.8.neon +++ /dev/null @@ -1,7 +0,0 @@ -includes: - - %currentWorkingDirectory%/tests/phpstan/phpstan.neon - -parameters: - ignoreErrors: - - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' diff --git a/tests/phpstan/phpstan-latest.neon b/tests/phpstan/phpstan-latest.neon deleted file mode 100644 index 8b75660..0000000 --- a/tests/phpstan/phpstan-latest.neon +++ /dev/null @@ -1,7 +0,0 @@ -includes: - - %currentWorkingDirectory%/tests/phpstan/phpstan.neon - -parameters: - ignoreErrors: - - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' diff --git a/tests/phpstan/phpstan.neon b/tests/phpstan/phpstan.neon deleted file mode 100644 index 0c6cd2a..0000000 --- a/tests/phpstan/phpstan.neon +++ /dev/null @@ -1,11 +0,0 @@ -includes: - - %currentWorkingDirectory%/vendor/prestashop/php-dev-tools/phpstan/ps-module-extension.neon - -parameters: - paths: - # From PHPStan 0.12, paths to check are relative to the neon file - - ../../contactform.php - - ../../upgrade/ - ignoreErrors: - reportUnmatchedIgnoredErrors: false - level: 5 From 7078f44d2c95535d1608e39f258908e22367a9ee Mon Sep 17 00:00:00 2001 From: Thomas Roux Date: Wed, 18 Feb 2026 07:06:30 +0100 Subject: [PATCH 08/24] compilance --- contactform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contactform.php b/contactform.php index 739975a..89406a8 100644 --- a/contactform.php +++ b/contactform.php @@ -66,7 +66,7 @@ public function __construct() 'Modules.Contactform.Admin' ); $this->ps_versions_compliancy = [ - 'min' => '1.7.2.0', + 'min' => '8.0.0', 'max' => _PS_VERSION_, ]; } From 7096b29b574300028f80ea7b26c2113dbec915aa Mon Sep 17 00:00:00 2001 From: Thomas Roux Date: Wed, 18 Feb 2026 07:22:50 +0100 Subject: [PATCH 09/24] Update Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d101197..6530613 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Help your customers get in touch when they need, add a contact form on your stor ## Compatibility -PrestaShop: `1.7.2.0` or later +PrestaShop: `8.0.0` or later ## How to test From d919d303e15d044d463aa5be9acc59af87c88ee0 Mon Sep 17 00:00:00 2001 From: Thomas Roux Date: Wed, 18 Feb 2026 07:34:51 +0100 Subject: [PATCH 10/24] Add missing --- tests/php/phpstan/phpstan-9.1.x.neon | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/php/phpstan/phpstan-9.1.x.neon diff --git a/tests/php/phpstan/phpstan-9.1.x.neon b/tests/php/phpstan/phpstan-9.1.x.neon new file mode 100644 index 0000000..efa856c --- /dev/null +++ b/tests/php/phpstan/phpstan-9.1.x.neon @@ -0,0 +1,2 @@ +includes: + - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon From 71d795cdbb9ce9ba5da2fc5ea2f799a9b3a32ddc Mon Sep 17 00:00:00 2001 From: Thomas Roux Date: Fri, 20 Feb 2026 08:49:21 +0100 Subject: [PATCH 11/24] Update repo for test --- .github/workflows/php.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index b484807..148577d 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -56,7 +56,7 @@ jobs: } > ${{ github.event.repository.name }}/.phpstan-php-ini/php.ini - name: Run PHPStan - uses: PrestaShop/.github/.github/actions/php-ci/phpstan@master + uses: Touxten/.github/.github/actions/php-ci/phpstan@master with: php-version: ${{ matrix.php_version }} presta-version: ${{ matrix.presta_version }} @@ -92,7 +92,7 @@ jobs: } > ${{ github.event.repository.name }}/.phpstan-php-ini/php.ini - name: Run PHPStan - uses: PrestaShop/.github/.github/actions/php-ci/phpstan@master + uses: Touxten/.github/.github/actions/php-ci/phpstan@master with: php-version: ${{ matrix.php_version }} presta-version: ${{ matrix.presta_version }} @@ -126,7 +126,7 @@ jobs: } > ${{ github.event.repository.name }}/.phpstan-php-ini/php.ini - name: Run PHPStan - uses: PrestaShop/.github/.github/actions/php-ci/phpstan@master + uses: Touxten/.github/.github/actions/php-ci/phpstan@master with: php-version: ${{ matrix.php_version }} presta-version: ${{ matrix.presta_version }} From 71dbb40368537bef5e8c2e932e5442c4d07c2774 Mon Sep 17 00:00:00 2001 From: Thomas Roux Date: Fri, 20 Feb 2026 08:53:46 +0100 Subject: [PATCH 12/24] Test --- tests/php/phpstan/phpstan-8.1.7.neon | 7 ++++++- tests/php/phpstan/phpstan-8.2.x.neon | 5 +++++ tests/php/phpstan/phpstan-9.0.x.neon | 7 ++++++- tests/php/phpstan/phpstan-9.1.x.neon | 5 +++++ tests/php/phpstan/phpstan-develop.neon | 5 +++++ 5 files changed, 27 insertions(+), 2 deletions(-) diff --git a/tests/php/phpstan/phpstan-8.1.7.neon b/tests/php/phpstan/phpstan-8.1.7.neon index 481ff9f..d185545 100644 --- a/tests/php/phpstan/phpstan-8.1.7.neon +++ b/tests/php/phpstan/phpstan-8.1.7.neon @@ -1,2 +1,7 @@ includes: - - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon \ No newline at end of file + - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon + +parameters: + ignoreErrors: + - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' + - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' \ No newline at end of file diff --git a/tests/php/phpstan/phpstan-8.2.x.neon b/tests/php/phpstan/phpstan-8.2.x.neon index efa856c..6294a6d 100644 --- a/tests/php/phpstan/phpstan-8.2.x.neon +++ b/tests/php/phpstan/phpstan-8.2.x.neon @@ -1,2 +1,7 @@ includes: - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon + +parameters: + ignoreErrors: + - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' + - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' diff --git a/tests/php/phpstan/phpstan-9.0.x.neon b/tests/php/phpstan/phpstan-9.0.x.neon index 481ff9f..d185545 100644 --- a/tests/php/phpstan/phpstan-9.0.x.neon +++ b/tests/php/phpstan/phpstan-9.0.x.neon @@ -1,2 +1,7 @@ includes: - - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon \ No newline at end of file + - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon + +parameters: + ignoreErrors: + - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' + - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' \ No newline at end of file diff --git a/tests/php/phpstan/phpstan-9.1.x.neon b/tests/php/phpstan/phpstan-9.1.x.neon index efa856c..6294a6d 100644 --- a/tests/php/phpstan/phpstan-9.1.x.neon +++ b/tests/php/phpstan/phpstan-9.1.x.neon @@ -1,2 +1,7 @@ includes: - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon + +parameters: + ignoreErrors: + - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' + - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' diff --git a/tests/php/phpstan/phpstan-develop.neon b/tests/php/phpstan/phpstan-develop.neon index efa856c..d185545 100644 --- a/tests/php/phpstan/phpstan-develop.neon +++ b/tests/php/phpstan/phpstan-develop.neon @@ -1,2 +1,7 @@ includes: - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon + +parameters: + ignoreErrors: + - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' + - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' \ No newline at end of file From ce6e3e45dc2439e040cf0b027d76eea1e53c7146 Mon Sep 17 00:00:00 2001 From: Thomas Roux Date: Fri, 20 Feb 2026 08:57:22 +0100 Subject: [PATCH 13/24] catch eror --- tests/php/phpstan/phpstan-8.1.7.neon | 3 +-- tests/php/phpstan/phpstan-8.2.x.neon | 1 - tests/php/phpstan/phpstan-9.0.x.neon | 2 +- tests/php/phpstan/phpstan-9.1.x.neon | 2 +- tests/php/phpstan/phpstan-develop.neon | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/php/phpstan/phpstan-8.1.7.neon b/tests/php/phpstan/phpstan-8.1.7.neon index d185545..0d3f527 100644 --- a/tests/php/phpstan/phpstan-8.1.7.neon +++ b/tests/php/phpstan/phpstan-8.1.7.neon @@ -3,5 +3,4 @@ includes: parameters: ignoreErrors: - - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' \ No newline at end of file + - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' \ No newline at end of file diff --git a/tests/php/phpstan/phpstan-8.2.x.neon b/tests/php/phpstan/phpstan-8.2.x.neon index 6294a6d..b0db9cf 100644 --- a/tests/php/phpstan/phpstan-8.2.x.neon +++ b/tests/php/phpstan/phpstan-8.2.x.neon @@ -4,4 +4,3 @@ includes: parameters: ignoreErrors: - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' diff --git a/tests/php/phpstan/phpstan-9.0.x.neon b/tests/php/phpstan/phpstan-9.0.x.neon index d185545..a72bdeb 100644 --- a/tests/php/phpstan/phpstan-9.0.x.neon +++ b/tests/php/phpstan/phpstan-9.0.x.neon @@ -4,4 +4,4 @@ includes: parameters: ignoreErrors: - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' \ No newline at end of file + - '#Call to an undefined static method Tools\:\:stripslashes\(\).#' \ No newline at end of file diff --git a/tests/php/phpstan/phpstan-9.1.x.neon b/tests/php/phpstan/phpstan-9.1.x.neon index 6294a6d..a97b152 100644 --- a/tests/php/phpstan/phpstan-9.1.x.neon +++ b/tests/php/phpstan/phpstan-9.1.x.neon @@ -4,4 +4,4 @@ includes: parameters: ignoreErrors: - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' + - '#Call to an undefined static method Tools\:\:stripslashes\(\).#' diff --git a/tests/php/phpstan/phpstan-develop.neon b/tests/php/phpstan/phpstan-develop.neon index d185545..a72bdeb 100644 --- a/tests/php/phpstan/phpstan-develop.neon +++ b/tests/php/phpstan/phpstan-develop.neon @@ -4,4 +4,4 @@ includes: parameters: ignoreErrors: - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' - - '#Access to an undefined property Cookie\:\:\$contactFormTokenTTL.#' \ No newline at end of file + - '#Call to an undefined static method Tools\:\:stripslashes\(\).#' \ No newline at end of file From abd30856b09c91d8b5872f5902c3541956eef779 Mon Sep 17 00:00:00 2001 From: Thomas Roux Date: Sat, 21 Feb 2026 10:30:14 +0100 Subject: [PATCH 14/24] Restore PrestaShop Repo --- .github/workflows/php.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 148577d..b484807 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -56,7 +56,7 @@ jobs: } > ${{ github.event.repository.name }}/.phpstan-php-ini/php.ini - name: Run PHPStan - uses: Touxten/.github/.github/actions/php-ci/phpstan@master + uses: PrestaShop/.github/.github/actions/php-ci/phpstan@master with: php-version: ${{ matrix.php_version }} presta-version: ${{ matrix.presta_version }} @@ -92,7 +92,7 @@ jobs: } > ${{ github.event.repository.name }}/.phpstan-php-ini/php.ini - name: Run PHPStan - uses: Touxten/.github/.github/actions/php-ci/phpstan@master + uses: PrestaShop/.github/.github/actions/php-ci/phpstan@master with: php-version: ${{ matrix.php_version }} presta-version: ${{ matrix.presta_version }} @@ -126,7 +126,7 @@ jobs: } > ${{ github.event.repository.name }}/.phpstan-php-ini/php.ini - name: Run PHPStan - uses: Touxten/.github/.github/actions/php-ci/phpstan@master + uses: PrestaShop/.github/.github/actions/php-ci/phpstan@master with: php-version: ${{ matrix.php_version }} presta-version: ${{ matrix.presta_version }} From e59bc598514b054b3bd5a18d228cdfed47938531 Mon Sep 17 00:00:00 2001 From: Thomas Roux Date: Sun, 22 Feb 2026 10:44:24 +0100 Subject: [PATCH 15/24] Compilance --- README.md | 2 +- contactform.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6530613..02f8e0b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Help your customers get in touch when they need, add a contact form on your stor ## Compatibility -PrestaShop: `8.0.0` or later +PrestaShop: `8.1.0` or later ## How to test diff --git a/contactform.php b/contactform.php index 89406a8..6f0e969 100644 --- a/contactform.php +++ b/contactform.php @@ -66,7 +66,7 @@ public function __construct() 'Modules.Contactform.Admin' ); $this->ps_versions_compliancy = [ - 'min' => '8.0.0', + 'min' => '8.1.0', 'max' => _PS_VERSION_, ]; } From 590d76b6d869c38ed0a66573ebd86e67bdc0606b Mon Sep 17 00:00:00 2001 From: Alexis Guyomar Date: Mon, 2 Mar 2026 16:46:09 +0100 Subject: [PATCH 16/24] github: new workflow to add issue to project --- .github/workflows/add-issue-to-project.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/add-issue-to-project.yml diff --git a/.github/workflows/add-issue-to-project.yml b/.github/workflows/add-issue-to-project.yml new file mode 100644 index 0000000..cfa4ba3 --- /dev/null +++ b/.github/workflows/add-issue-to-project.yml @@ -0,0 +1,13 @@ +name: Add Issue to Project + +on: + issues: + types: [ opened ] + +jobs: + add-to-project: + uses: PrestaShop/.github/.github/workflows/reusable-add-to-project.yml@master + with: + project-number: 47 + secrets: + TOKEN: ${{ secrets.JARVIS_TOKEN }} From 06e147cfe9133e4164efe16aefaed6897d69409c Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 15 Jun 2026 12:04:32 +0200 Subject: [PATCH 17/24] CI : PHPStan with common action --- .github/workflows/php.yml | 15 +++++++-------- tests/php/phpstan/phpstan-8.1.7.neon | 6 ------ .../{phpstan-9.0.x.neon => phpstan-9.0.3.neon} | 0 3 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 tests/php/phpstan/phpstan-8.1.7.neon rename tests/php/phpstan/{phpstan-9.0.x.neon => phpstan-9.0.3.neon} (100%) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index b484807..f16d82f 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -30,13 +30,13 @@ jobs: with: php-version: '7.4' - # Run PHPStan against the module (PHP 7.4 – 8.1) - phpstan-74: + # Run PHPStan against the module (PHP 7.4 – PS 8.2) + phpstan-74-81: name: PHPStan (PHP 7.4 - 8.1) runs-on: ubuntu-latest strategy: matrix: - presta_version: ['8.1.7', '8.2.x'] + presta_version: ['8.2.x'] php_version: ['7.4', '8.1'] fail-fast: false env: @@ -66,13 +66,13 @@ jobs: phpstan-version: '^0.12' composer-version: '2.2.18' - # Run PHPStan against the module (PHP 8.1 – 8.4) - phpstan-80-84: +# Run PHPStan against the module (PHP 8.1 – 8.4) + phpstan-81-84: name: PHPStan (PHP 8.1 - 8.4) runs-on: ubuntu-latest strategy: matrix: - presta_version: ['9.0.x'] + presta_version: ['9.0.3'] php_version: ['8.1', '8.4'] fail-fast: false env: @@ -83,7 +83,7 @@ jobs: with: path: ${{ github.event.repository.name }} - - name: Prepare PHP env for PrestaShop 9.0.x (define constants before any bootstrap) + - name: Prepare PHP env for PrestaShop 9.1.x and later (define constants before any bootstrap) run: | mkdir -p ${{ github.event.repository.name }}/.phpstan-php-ini { @@ -133,4 +133,3 @@ jobs: module-name: ${{ github.event.repository.name }} phpstan-level: '5' phpstan-config: tests/php/phpstan/phpstan-${{ matrix.presta_version }}.neon - diff --git a/tests/php/phpstan/phpstan-8.1.7.neon b/tests/php/phpstan/phpstan-8.1.7.neon deleted file mode 100644 index 0d3f527..0000000 --- a/tests/php/phpstan/phpstan-8.1.7.neon +++ /dev/null @@ -1,6 +0,0 @@ -includes: - - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon - -parameters: - ignoreErrors: - - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' \ No newline at end of file diff --git a/tests/php/phpstan/phpstan-9.0.x.neon b/tests/php/phpstan/phpstan-9.0.3.neon similarity index 100% rename from tests/php/phpstan/phpstan-9.0.x.neon rename to tests/php/phpstan/phpstan-9.0.3.neon From ef2a5cdcb75c99103d52031f796fbdd21d42193c Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Thu, 18 Jun 2026 12:03:56 +0200 Subject: [PATCH 18/24] Support for PS 8.2+ --- README.md | 2 +- contactform.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 02f8e0b..d957b18 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Help your customers get in touch when they need, add a contact form on your stor ## Compatibility -PrestaShop: `8.1.0` or later +PrestaShop: `8.2.0` or later ## How to test diff --git a/contactform.php b/contactform.php index 6f0e969..20d70e9 100644 --- a/contactform.php +++ b/contactform.php @@ -66,7 +66,7 @@ public function __construct() 'Modules.Contactform.Admin' ); $this->ps_versions_compliancy = [ - 'min' => '8.1.0', + 'min' => '8.2.0', 'max' => _PS_VERSION_, ]; } From ec8d8fb38a883d3bcf68257432c4185f4119d67b Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Fri, 19 Jun 2026 12:11:17 +0200 Subject: [PATCH 19/24] PHP support from 7.2 to 8.5 (PS 8.2+) --- .github/workflows/php.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index f16d82f..3fc59ee 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,21 +2,36 @@ name: PHP tests on: [push, pull_request] jobs: php-linter: - name: PHP Syntax check + name: PHP Syntax check 7.2 => 8.5 runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v3.1.0 - name: PHP syntax checker 7.2 uses: prestashop/github-action-php-lint/7.2@master + - name: PHP syntax checker 7.3 + uses: prestashop/github-action-php-lint/7.3@master + - name: PHP syntax checker 7.4 uses: prestashop/github-action-php-lint/7.4@master - name: PHP syntax checker 8.0 uses: prestashop/github-action-php-lint/8.0@master + - name: PHP syntax checker 8.1 + uses: prestashop/github-action-php-lint/8.1@master + + - name: PHP syntax checker 8.2 + uses: prestashop/github-action-php-lint/8.2@master + + - name: PHP syntax checker 8.3 + uses: prestashop/github-action-php-lint/8.3@master + + - name: PHP syntax checker 8.4 + uses: prestashop/github-action-php-lint/8.4@master + - name: PHP syntax checker 8.5 uses: prestashop/github-action-php-lint/8.5@master From c7d24b3f712193711a9f24e6d7615153a3099ed7 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 22 Jun 2026 12:15:18 +0200 Subject: [PATCH 20/24] CI : Dependabot (PHP / Node / Github Actions) --- .github/dependabot.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e1818d4..1ebf2ce 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,13 +1,20 @@ version: 2 updates: -- package-ecosystem: npm +- package-ecosystem: composer directory: "/" schedule: interval: daily time: "04:00" open-pull-requests-limit: 10 target-branch: dev -- package-ecosystem: composer +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + target-branch: dev +- package-ecosystem: npm directory: "/" schedule: interval: daily From 8229294f3b681b7ad1f83e6a37b41ccb42878afd Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Wed, 15 Jul 2026 15:36:46 +0200 Subject: [PATCH 21/24] Support for PS 9.2.x --- .github/workflows/php.yml | 2 +- tests/php/phpstan/phpstan-9.2.x.neon | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tests/php/phpstan/phpstan-9.2.x.neon diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 3fc59ee..4612a34 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -121,7 +121,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - presta_version: ['9.1.x', 'develop'] + presta_version: ['9.1.x', '9.2.x', 'develop'] php_version: ['8.1', '8.5'] fail-fast: false env: 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..a72bdeb --- /dev/null +++ b/tests/php/phpstan/phpstan-9.2.x.neon @@ -0,0 +1,7 @@ +includes: + - %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon + +parameters: + ignoreErrors: + - '#Access to an undefined property Cookie\:\:\$contactFormToken.#' + - '#Call to an undefined static method Tools\:\:stripslashes\(\).#' \ No newline at end of file From e0606f61a26c412d7939c24cb1f008fb140af9b3 Mon Sep 17 00:00:00 2001 From: Jonathan LELIEVRE Date: Thu, 6 Aug 2026 14:30:33 +0200 Subject: [PATCH 22/24] Replace 9.1.x branch with 9.1.4 tag in CI --- .github/workflows/php.yml | 2 +- tests/php/phpstan/{phpstan-9.1.x.neon => phpstan-9.1.4.neon} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/php/phpstan/{phpstan-9.1.x.neon => phpstan-9.1.4.neon} (100%) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 4612a34..22e7e07 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -121,7 +121,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - presta_version: ['9.1.x', '9.2.x', 'develop'] + presta_version: ['9.1.4', '9.2.x', 'develop'] php_version: ['8.1', '8.5'] fail-fast: false env: diff --git a/tests/php/phpstan/phpstan-9.1.x.neon b/tests/php/phpstan/phpstan-9.1.4.neon similarity index 100% rename from tests/php/phpstan/phpstan-9.1.x.neon rename to tests/php/phpstan/phpstan-9.1.4.neon From 00532772f1300670db5800309faeb1ae381ed750 Mon Sep 17 00:00:00 2001 From: mattgoud Date: Fri, 28 Aug 2026 15:07:45 +0200 Subject: [PATCH 23/24] CI: pin PrestaShop 9.1.5 instead of the superseded 9.1.4 tag 9.1.5 is the last release of the 9.1 line: the 9.1.x branch was deleted from the core once it shipped, so nothing newer will come out of it. --- .github/workflows/php.yml | 2 +- tests/php/phpstan/{phpstan-9.1.4.neon => phpstan-9.1.5.neon} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/php/phpstan/{phpstan-9.1.4.neon => phpstan-9.1.5.neon} (100%) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 22e7e07..db79f23 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -121,7 +121,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - presta_version: ['9.1.4', '9.2.x', 'develop'] + presta_version: ['9.1.5', '9.2.x', 'develop'] php_version: ['8.1', '8.5'] fail-fast: false env: 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 From 8ebc42d79ab5fff5b21901a8fa2c2e2541f3ad27 Mon Sep 17 00:00:00 2001 From: Jonathan LELIEVRE Date: Thu, 10 Sep 2026 10:18:10 +0200 Subject: [PATCH 24/24] Bump 5.0.0 --- config.xml | 2 +- contactform.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.xml b/config.xml index 04a175a..f4efaa3 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ contactform - + diff --git a/contactform.php b/contactform.php index 20d70e9..962ca28 100644 --- a/contactform.php +++ b/contactform.php @@ -54,7 +54,7 @@ public function __construct() $this->name = 'contactform'; $this->author = 'PrestaShop'; $this->tab = 'front_office_features'; - $this->version = '4.4.4'; + $this->version = '5.0.0'; $this->bootstrap = true; parent::__construct();