Skip to content

Commit 76d4e07

Browse files
committed
added readonly proprty and return type array
1 parent f61a7aa commit 76d4e07

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/ConfigurableProduct/Plugin/Catalog/Model/Product/Attribute/Backend/TierPrice

1 file changed

+2
-2
lines changed

app/code/Magento/ConfigurableProduct/Plugin/Catalog/Model/Product/Attribute/Backend/TierPrice/UpdateHandlerPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class UpdateHandlerPlugin
2020
/**
2121
* @var ProductAttributeRepositoryInterface
2222
*/
23-
private $attributeRepository;
23+
public readonly ProductAttributeRepositoryInterface $attributeRepository;
2424

2525
/**
2626
* UpdateHandlerPlugin constructor.
@@ -40,7 +40,7 @@ public function __construct(ProductAttributeRepositoryInterface $attributeReposi
4040
* @param array $arguments
4141
* @return array
4242
*/
43-
public function beforeExecute(UpdateHandler $subject, $entity, $arguments = [])
43+
public function beforeExecute(UpdateHandler $subject, $entity, $arguments = []): array
4444
{
4545
$attribute = $this->attributeRepository->get('tier_price');
4646
$origPrices = $entity->getOrigData($attribute->getName());

0 commit comments

Comments
 (0)