Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
lartist committed Aug 11, 2023
1 parent 62e530f commit aeb98d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
Expand Up @@ -75,7 +75,6 @@ class AttributeType extends TranslatorAwareType
/**
* @param TranslatorInterface $translator
* @param array $locales
* @param bool $isMultistoreEnabled
* @param AttributeGroupRepository $attributeGroupRepository
* @param int $contextShopId
*/
Expand Down
Expand Up @@ -15,18 +15,12 @@ services:
- '%database_prefix%'

PrestaShop\PrestaShop\Adapter\Attribute\CommandHandler\AddAttributeHandler:
tags:
- name: tactician.handler
command: PrestaShop\PrestaShop\Core\Domain\AttributeGroup\Attribute\Command\AddAttributeCommand
autoconfigure: true

PrestaShop\PrestaShop\Adapter\Attribute\CommandHandler\EditAttributeHandler:
tags:
- name: tactician.handler
command: PrestaShop\PrestaShop\Core\Domain\AttributeGroup\Attribute\Command\EditAttributeCommand
autoconfigure: true

PrestaShop\PrestaShop\Adapter\Attribute\QueryHandler\GetAttributeForEditingHandler:
tags:
- name: tactician.handler
command: PrestaShop\PrestaShop\Core\Domain\AttributeGroup\Attribute\Query\GetAttributeForEditing
autoconfigure: true

PrestaShop\PrestaShop\Adapter\Attribute\Validate\AttributeValidator:
Expand Up @@ -46,21 +46,14 @@

class AttributeFeatureContext extends AbstractDomainFeatureContext
{
/**
* @var int default language id from configs
*/
private $defaultLangId;

/**
* @var int default shop id from configs
*/
private $defaultShopId;

public function __construct()
{
$configuration = CommonFeatureContext::getContainer()->get('prestashop.adapter.legacy.configuration');
$this->defaultLangId = $configuration->get('PS_LANG_DEFAULT');
$this->defaultShopId = $configuration->get('PS_SHOP_DEFAULT');
$this->defaultShopId = CommonFeatureContext::getContainer()->get('prestashop.adapter.legacy.configuration')->get('PS_SHOP_DEFAULT');
}

/**
Expand Down

0 comments on commit aeb98d4

Please sign in to comment.