Skip to content

Commit

Permalink
Merge pull request #994 from PrestaShop/dev
Browse files Browse the repository at this point in the history
Release 3.15.1
  • Loading branch information
jolelievre authored Mar 1, 2024
2 parents 6c04ae4 + fb83f48 commit 5e06b7e
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 62 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>ps_facetedsearch</name>
<displayName><![CDATA[Faceted search]]></displayName>
<version><![CDATA[3.15.0]]></version>
<version><![CDATA[3.15.1]]></version>
<description><![CDATA[Displays a block allowing multiple filters.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab>
Expand Down
94 changes: 47 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
"chai": "^4.3.10",
"clean-webpack-plugin": "^4.0.0",
"css-loader": "^6.10.0",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prestashop": "^0.2.1",
"eslint-plugin-import": "^2.29.1",
"mini-css-extract-plugin": "^1.0.0",
"mocha": "^10.2.0",
"node-sass": "^9.0.0",
"sass-loader": "^14.1.0",
"sass-loader": "^14.1.1",
"style-loader": "^2.0.0",
"webpack": "^5.90.1",
"webpack": "^5.90.3",
"webpack-cli": "^4.10.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion ps_facetedsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function __construct()
{
$this->name = 'ps_facetedsearch';
$this->tab = 'front_office_features';
$this->version = '3.15.0';
$this->version = '3.15.1';
$this->author = 'PrestaShop';
$this->need_instance = 0;
$this->bootstrap = true;
Expand Down
8 changes: 6 additions & 2 deletions src/Form/Attribute/FormModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,21 @@

use PrestaShop\Module\FacetedSearch\Constraint\UrlSegment;
use PrestaShopBundle\Form\Admin\Type\TranslatableType;
use PrestaShopBundle\Translation\DataCollectorTranslator;
use PrestaShopBundle\Translation\TranslatorComponent;
use Symfony\Component\Form\FormBuilderInterface;

class FormModifier
{
/**
* @var TranslatorComponent
* @var DataCollectorTranslator|TranslatorComponent
*/
private $translator;

public function __construct(TranslatorComponent $translator)
/**
* @param DataCollectorTranslator|TranslatorComponent $translator
*/
public function __construct($translator)
{
$this->translator = $translator;
}
Expand Down
8 changes: 6 additions & 2 deletions src/Form/AttributeGroup/FormModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,21 @@
use PrestaShop\PrestaShop\Core\Exception\CoreException;
use PrestaShopBundle\Form\Admin\Type\SwitchType;
use PrestaShopBundle\Form\Admin\Type\TranslatableType;
use PrestaShopBundle\Translation\DataCollectorTranslator;
use PrestaShopBundle\Translation\TranslatorComponent;
use Symfony\Component\Form\FormBuilderInterface;

class FormModifier
{
/**
* @var TranslatorComponent
* @var DataCollectorTranslator|TranslatorComponent
*/
private $translator;

public function __construct(TranslatorComponent $translator)
/**
* @param DataCollectorTranslator|TranslatorComponent $translator
*/
public function __construct($translator)
{
$this->translator = $translator;
}
Expand Down
5 changes: 2 additions & 3 deletions src/Form/Feature/FormModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use PrestaShop\Module\FacetedSearch\Constraint\UrlSegment;
use PrestaShopBundle\Form\Admin\Type\SwitchType;
use PrestaShopBundle\Form\Admin\Type\TranslatableType;
use PrestaShopBundle\Translation\DataCollectorTranslator;
use PrestaShopBundle\Translation\TranslatorComponent;
use Symfony\Component\Form\FormBuilderInterface;

Expand All @@ -46,9 +47,7 @@ public function modify(
FormBuilderInterface $formBuilder,
array $data
) {
/**
* @var TranslatorComponent
*/
/** @var DataCollectorTranslator|TranslatorComponent $translator */
$translator = $this->context->getTranslator();
$invalidCharsHint = $translator->trans(
'Invalid characters: <>;=#{}_',
Expand Down
5 changes: 2 additions & 3 deletions src/Form/FeatureValue/FormModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use Context;
use PrestaShop\Module\FacetedSearch\Constraint\UrlSegment;
use PrestaShopBundle\Form\Admin\Type\TranslatableType;
use PrestaShopBundle\Translation\DataCollectorTranslator;
use PrestaShopBundle\Translation\TranslatorComponent;
use Symfony\Component\Form\FormBuilderInterface;

Expand All @@ -45,9 +46,7 @@ public function modify(
FormBuilderInterface $formBuilder,
array $data
) {
/**
* @var TranslatorComponent
*/
/** @var DataCollectorTranslator|TranslatorComponent $translator */
$translator = $this->context->getTranslator();
$invalidCharsHint = $translator->trans(
'Invalid characters: <>;=#{}_',
Expand Down

0 comments on commit 5e06b7e

Please sign in to comment.