Skip to content

Commit 92d6156

Browse files
author
Michał Myszka
committed
Release 2.0.8
1 parent 07b011b commit 92d6156

File tree

9 files changed

+57
-93
lines changed

9 files changed

+57
-93
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [2.0.8] - 2025-01-30
4+
### Fix
5+
- Added support for PrestaShop 9.1
6+
-
37
## [2.0.7] - 2025-12-01
48
### Fix
59
- Added limit for images and description

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Send personalized, targeted offers to maximize conversions and increase sales.
2020
## Requirements
2121
- PrestaShop in one of the supported versions: 1.7.x or 8.x
2222
- PHP version:
23-
- 7.4 for PrestaShop 1.7.x
24-
- 8.1 or higher for PrestaShop 8.x
23+
- 7.2 for PrestaShop 1.7.x / 8.x
24+
- 8.1 or higher for PrestaShop 9.x
2525
- Prestshop response time (for request from GetResponse) no longer than 15 seconds
2626

2727
## Known issues

classes/WebserviceSpecificManagementGetresponseModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private function getPluginDetails()
192192

193193
return json_encode(
194194
[
195-
'plugin_version' => '2.0.7',
195+
'plugin_version' => '2.0.8',
196196
'prestashop_version' => _PS_VERSION_,
197197
'php_version' => phpversion(),
198198
'shops' => $shops,

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"type": "prestashop-module",
2020
"minimum-stability": "stable",
2121
"require": {
22-
"php": ">= 7.2",
23-
"beberlei/assert": "2.*"
22+
"php": ">= 7.2"
2423
},
2524
"require-dev": {
2625
"phpunit/phpunit": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" ,

composer.lock

Lines changed: 25 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<module>
33
<name>grprestashop</name>
44
<displayName><![CDATA[GetResponse]]></displayName>
5-
<version><![CDATA[2.0.7]]></version>
5+
<version><![CDATA[2.0.8]]></version>
66
<description><![CDATA[Add your Prestashop contacts to GetResponse.]]></description>
77
<author><![CDATA[GetResponse]]></author>
88
<tab><![CDATA[emailing]]></tab>

grprestashop.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public function __construct()
4242
{
4343
$this->name = 'grprestashop';
4444
$this->tab = 'emailing';
45-
$this->version = '2.0.7';
45+
$this->version = '2.0.8';
4646
$this->author = 'GetResponse';
4747
$this->need_instance = 0;
4848
$this->module_key = '311ef191c3135b237511d18c4bc27369';
49-
$this->ps_versions_compliancy = ['min' => '1.7', 'max' => '8.2.1'];
49+
$this->ps_versions_compliancy = ['min' => '1.7', 'max' => '9.1'];
5050
$this->displayName = $this->l('GetResponse');
5151
$this->description = 'Add your Prestashop contacts to GetResponse.';
5252
$this->confirmUninstall = $this->l('Are you sure you want to uninstall?');

src/Configuration/Domain/LiveSynchronization.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace GetResponse\Configuration\Domain;
2222

23-
use Assert\Assertion;
23+
use InvalidArgumentException;
2424

2525
if (!defined('_PS_VERSION_')) {
2626
exit;
@@ -33,9 +33,17 @@ class LiveSynchronization
3333
/** @var string */
3434
private $type;
3535

36+
/**
37+
* @throws InvalidArgumentException
38+
*/
3639
public function __construct(string $url, string $type)
3740
{
38-
Assertion::inArray($type, ['Contacts', 'Products', 'FullEcommerce']);
41+
if (false === in_array($type, ['Contacts', 'Products', 'FullEcommerce'])) {
42+
throw new InvalidArgumentException(
43+
sprintf('Not valid type `%s`', $type)
44+
);
45+
}
46+
3947
$this->url = $url;
4048
$this->type = $type;
4149
}

src/Configuration/Domain/WebForm.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
namespace GetResponse\Configuration\Domain;
2222

23-
use Assert\Assertion;
2423
use GetResponse\Configuration\SharedKernel\WebFormPosition;
24+
use InvalidArgumentException;
2525

2626
if (!defined('_PS_VERSION_')) {
2727
exit;
@@ -36,6 +36,9 @@ class WebForm
3636
/** @var string */
3737
private $position;
3838

39+
/**
40+
* @throws InvalidArgumentException
41+
*/
3942
public function __construct(string $id, string $url, string $position)
4043
{
4144
$availablePositions = [
@@ -46,7 +49,13 @@ public function __construct(string $id, string $url, string $position)
4649
WebFormPosition::LEFT,
4750
WebFormPosition::RIGHT,
4851
];
49-
Assertion::inArray($position, $availablePositions);
52+
53+
if (false === in_array($position, $availablePositions)) {
54+
throw new InvalidArgumentException(
55+
sprintf('Not valid position `%s`', $position)
56+
);
57+
}
58+
5059
$this->id = $id;
5160
$this->url = $url;
5261
$this->position = $position;

0 commit comments

Comments
 (0)