Skip to content

Commit

Permalink
drop php5.6, add php7.1 n 8.2, update module version to 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leemyongpakvn committed Oct 2, 2023
1 parent 4de52f5 commit 369aba4
Show file tree
Hide file tree
Showing 6 changed files with 244 additions and 465 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ on: [push, pull_request]
jobs:
# Check there is no syntax errors in the project
php-linter:
name: PHP Syntax check 5.6 => 8.1
name: PHP Syntax check 7.1 => 8.2
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: PHP syntax checker 5.6
- name: PHP syntax checker 7.1
uses: prestashop/github-action-php-lint/5.6@master

- name: PHP syntax checker 7.2
Expand All @@ -27,6 +27,9 @@ jobs:
- 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

# Check the PHP code follow the coding standards
php-cs-fixer:
name: PHP-CS-Fixer
Expand Down Expand Up @@ -58,7 +61,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
presta-versions: ['1.7.1.2', '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-versions: ['1.7.7', '1.7.8', '8.0', 'latest']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Connect with your visitors and reassure them about secure payment, free shipping

## Compatibility

PrestaShop: `1.7.0.0` or later
PrestaShop: `1.7.7.0` or later

## Multistore compatibility

Expand Down
4 changes: 2 additions & 2 deletions blockreassurance.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function __construct()
// Settings
$this->name = 'blockreassurance';
$this->tab = 'front_office_features';
$this->version = '5.1.3';
$this->version = '6.0.0';
$this->author = 'PrestaShop';
$this->need_instance = false;

Expand Down Expand Up @@ -121,7 +121,7 @@ public function __construct()
// Confirm uninstall
$this->confirmUninstall = $this->trans('Are you sure you want to uninstall this module?', [], 'Modules.Blockreassurance.Admin');
$this->ps_url = $this->context->link->getBaseLink();
$this->ps_versions_compliancy = ['min' => '1.7', 'max' => _PS_VERSION_];
$this->ps_versions_compliancy = ['min' => '1.7.7', 'max' => _PS_VERSION_];
$this->templateFile = 'module:blockreassurance/views/templates/hook/blockreassurance.tpl';
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": ">=5.6.0"
"php": ">=7.1.3"
},
"require-dev": {
"prestashop/php-dev-tools": "^4.3"
Expand Down
Loading

0 comments on commit 369aba4

Please sign in to comment.