Skip to content

Commit 4ea6ece

Browse files
authored
Code compatibility fix for PHP 8.0 (#376)
1 parent aa7d620 commit 4ea6ece

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2025-07-04 4.8.31
2+
* Code compatibility fix for PHP 8.0
3+
14
## 2025-07-04 4.8.30
25
* Added description for canceling of bonus operations
36

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.8.30
1+
4.8.31

src/include/components/class-wc-retailcrm-loyalty-form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ public function getInfoLoyalty(array $loyaltyAccount)
7878
'cancel_of_credit' => __('Сancel of credit for order ', 'retailcrm'),
7979
];
8080
$currency = ' ' . $loyaltyAccount['loyalty']['currency'];
81-
$burnInfo = $loyaltyAccount['burnBonuses'][0] ?: [];
82-
$activationInfo = $loyaltyAccount['activationBonuses'][0] ?: [];
81+
$burnInfo = $loyaltyAccount['burnBonuses'][0] ?? [];
82+
$activationInfo = $loyaltyAccount['activationBonuses'][0] ?? [];
8383

8484
switch ($loyaltyAccount['level']['type']) {
8585
case 'bonus_converting':

src/readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla
55
Requires PHP: 7.1
66
Requires at least: 5.3
77
Tested up to: 6.8
8-
Stable tag: 4.8.30
8+
Stable tag: 4.8.31
99
License: GPLv1 or later
1010
License URI: http://www.gnu.org/licenses/gpl-1.0.html
1111

@@ -82,6 +82,9 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i
8282

8383

8484
== Changelog ==
85+
= 4.8.31 =
86+
* Code compatibility fix for PHP 8.0
87+
8588
= 4.8.30 =
8689
* Added description for canceling of bonus operations
8790

src/retailcrm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Integration plugin for WooCommerce & Simla.com
66
* Author: RetailDriver LLC
77
* Author URI: http://retailcrm.pro/
8-
* Version: 4.8.30
8+
* Version: 4.8.31
99
* Tested up to: 6.8
1010
* Requires Plugins: woocommerce
1111
* WC requires at least: 5.4
@@ -27,7 +27,7 @@
2727
class WC_Integration_Retailcrm {
2828
const WOOCOMMERCE_SLUG = 'woocommerce';
2929
const WOOCOMMERCE_PLUGIN_PATH = 'woocommerce/woocommerce.php';
30-
const MODULE_VERSION = '4.8.30';
30+
const MODULE_VERSION = '4.8.31';
3131

3232
private static $instance;
3333

src/uninstall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @link https://wordpress.org/plugins/woo-retailcrm/
1818
*
19-
* @version 4.8.30
19+
* @version 4.8.31
2020
*
2121
* @package RetailCRM
2222
*/

0 commit comments

Comments
 (0)