Skip to content

Commit

Permalink
fix: compatibility from php5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Freoua-Alma committed Aug 10, 2023
1 parent 9929915 commit 29319a2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v3.0.1

- fix: Compatibility from PHP5.6

## v3.0.0

- feat: In-Page payment
Expand Down
4 changes: 2 additions & 2 deletions alma/alma.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

class Alma extends PaymentModule
{
const VERSION = '3.0.0';
const VERSION = '3.0.1';

public $_path;
public $local_path;
Expand Down Expand Up @@ -65,7 +65,7 @@ public function __construct()
{
$this->name = 'alma';
$this->tab = 'payments_gateways';
$this->version = '3.0.0';
$this->version = '3.0.1';
$this->author = 'Alma';
$this->need_instance = false;
$this->bootstrap = true;
Expand Down
4 changes: 2 additions & 2 deletions alma/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"phpunit/phpunit": "^5",
"mockery/mockery": "^1.3",
"phpcompatibility/php-compatibility": "10.x-dev",
"prestashop/php-dev-tools": "dev-master"
"prestashop/php-dev-tools": "^3.16"
},
"require": {
"php": "^5.6 || ~7.0 || ~7.1 || ~7.2 || ~7.3 || ~7.4 || ~8.0 || ~8.1",
"alma/alma-php-client": "^1.11.1",
"ext-json": "*",
"ext-openssl": "*",
"prestashop/autoindex": "2.1"
"prestashop/autoindex": "^1.0.0"
},
"autoload": {
"files": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mkdir ./dist
cd ./tmp/build/alma || exit

rm -rf vendor config.xml config_*.xml
composer install --no-dev --optimize-autoloader
/opt/homebrew/Cellar/[email protected]/5.6.40_8/bin/php /usr/local/bin/composer install --no-dev --optimize-autoloader
composer dump-autoload --optimize

"$DIR/alma/vendor/bin/autoindex" prestashop:add:index
Expand Down

0 comments on commit 29319a2

Please sign in to comment.