From c45a69c76075953eec8682d87edca469079c9a51 Mon Sep 17 00:00:00 2001 From: tleon Date: Tue, 16 Apr 2024 17:30:15 +0200 Subject: [PATCH 1/2] Change min compatibility version of PS to 1.7.8 --- .github/workflows/php.yml | 2 +- README.md | 2 +- productcomments.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 8fd1d40..767c627 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -58,7 +58,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - presta-versions: ['1.7.7', '1.7.8', '8.0', 'latest'] + presta-versions: ['1.7.8', '8.0', 'latest'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/README.md b/README.md index 82825dc..0f18c6d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Allow users to post reviews on your products and/or rate them based on specific ## Compatibility -PrestaShop: `1.7.7` or newer +PrestaShop: `1.7.8` or newer ## Multistore compatibility diff --git a/productcomments.php b/productcomments.php index 6d22ab0..4e7f569 100644 --- a/productcomments.php +++ b/productcomments.php @@ -60,7 +60,7 @@ public function __construct() $this->langId = $this->context->language->id; $this->shopId = $this->context->shop->id ? $this->context->shop->id : Configuration::get('PS_SHOP_DEFAULT'); - $this->ps_versions_compliancy = ['min' => '1.7.7', 'max' => _PS_VERSION_]; + $this->ps_versions_compliancy = ['min' => '1.7.8', 'max' => _PS_VERSION_]; } public function install($keep = true) From b6e288c3353aab08a70e8467bcbee6f9ff168b46 Mon Sep 17 00:00:00 2001 From: tleon Date: Tue, 16 Apr 2024 18:13:57 +0200 Subject: [PATCH 2/2] Change module version to 7.0.0 --- config.xml | 2 +- productcomments.php | 2 +- src/Entity/ProductCommentCriterion.php | 6 +++--- src/Repository/ProductCommentCriterionRepository.php | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config.xml b/config.xml index bba666f..9ac309c 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ productcomments - + diff --git a/productcomments.php b/productcomments.php index 4e7f569..af91e93 100644 --- a/productcomments.php +++ b/productcomments.php @@ -47,7 +47,7 @@ public function __construct() { $this->name = 'productcomments'; $this->tab = 'front_office_features'; - $this->version = '6.0.3'; + $this->version = '7.0.0'; $this->author = 'PrestaShop'; $this->need_instance = 0; $this->bootstrap = true; diff --git a/src/Entity/ProductCommentCriterion.php b/src/Entity/ProductCommentCriterion.php index de61000..7a76c6a 100644 --- a/src/Entity/ProductCommentCriterion.php +++ b/src/Entity/ProductCommentCriterion.php @@ -67,7 +67,7 @@ class ProductCommentCriterion /** * @var array * - * @deprecated 6.0.3 - use criterionLangs instead + * @deprecated 7.0.0 - use criterionLangs instead */ private $names; @@ -139,7 +139,7 @@ public function getCriterionName(): string /** * @return array * - * @deprecated 6.0.3 - migrated to Form\ProductCommentCriterionFormDataProvider + * @deprecated 7.0.0 - migrated to Form\ProductCommentCriterionFormDataProvider */ public function getNames() { @@ -151,7 +151,7 @@ public function getNames() * * @return ProductCommentCriterion * - * @deprecated 6.0.3 + * @deprecated 7.0.0 */ public function setNames($langNames) { diff --git a/src/Repository/ProductCommentCriterionRepository.php b/src/Repository/ProductCommentCriterionRepository.php index c978e5b..1507208 100644 --- a/src/Repository/ProductCommentCriterionRepository.php +++ b/src/Repository/ProductCommentCriterionRepository.php @@ -89,7 +89,7 @@ public function remove(ProductCommentCriterion $entity, bool $flush = false): vo } /** - * @deprecated 6.0.3 - cascade remove by Entity setting instead + * @deprecated 7.0.0 - cascade remove by Entity setting instead */ private function deleteLangs($criterion): int { @@ -167,7 +167,7 @@ public function update(ProductCommentCriterion $criterion): int } /** - * @deprecated 6.0.3 - migrated to Form\ProductCommentCriterionFormDataHandler + * @deprecated 7.0.0 - migrated to Form\ProductCommentCriterionFormDataHandler */ private function updateLangs($criterion): int { @@ -346,7 +346,7 @@ public function getTypes() /** * @return ProductCommentCriterion * - * @deprecated 6.0.3 - use standard find() instead + * @deprecated 7.0.0 - use standard find() instead */ public function findRelation($id_criterion) {