From a7b3307bed00c69fe13ed93074148ac8377e979f Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 1 Aug 2022 01:12:31 +0000 Subject: [PATCH] Compatible with PHP8.1.0 --- CHANGELOG.md | 4 ++++ Helper/ApiRequest.php | 2 +- README.md | 2 +- composer.json | 2 +- etc/module.xml | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15701f6..c1221f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 4.0.1 (2022-08-01) +Improvements: +- Compatible with PHP 8.1.0 + ## 4.0.0 (2022-07-26) Improvements: - Add new IDR payment: AstraPay diff --git a/Helper/ApiRequest.php b/Helper/ApiRequest.php index 4b769fb..2ee5676 100644 --- a/Helper/ApiRequest.php +++ b/Helper/ApiRequest.php @@ -110,7 +110,7 @@ private function getHeaders($isPublicRequest, $preferredMethod = null, $customHe 'Content-Type' => 'application/json', 'x-plugin-name' => 'MAGENTO2', 'user-agent' => 'Magento 2 Module', - 'x-plugin-version' => '4.0.0' + 'x-plugin-version' => '4.0.1' ]; if ($preferredMethod !== null) { diff --git a/README.md b/README.md index ebd867c..cc7570e 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ If your server doesn’t have the composer install, you can easily install it. h `composer require xendit/m2invoice` When it’s finished you can activate the extension, clean the caches and deploy the content in your Magento® environment using the following command line; -- `php bin/magento module:enable Mollie_Payment` +- `php bin/magento module:enable Xendit_M2Invoice` - `php bin/magento setup:upgrade` - `php bin/magento cache:clean` diff --git a/composer.json b/composer.json index 48ba8cf..f0f78b9 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "xendit/m2invoice", "description": "Xendit Payment Gateway Module", "type": "magento2-module", - "version": "4.0.0", + "version": "4.0.1", "license": [ "GPL-3.0" ], diff --git a/etc/module.xml b/etc/module.xml index 8d17947..4d643b2 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,4 +1,4 @@ - +