Skip to content

Commit 28e578b

Browse files
authored
Fix zend imports
1 parent 0283003 commit 28e578b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Setup/Patch/Data/ProductAttributes.php

+7-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
use Magento\Framework\Exception\LocalizedException;
1818
use Magento\Framework\Setup\ModuleDataSetupInterface;
1919
use Magento\Framework\Setup\Patch\DataPatchInterface;
20+
use Magento\Framework\Validator\ValidateException;
2021
use Magento\Store\Model\Store;
21-
use Zend_Validate_Exception;
2222

2323
final class ProductAttributes implements DataPatchInterface
2424
{
@@ -39,8 +39,8 @@ public static function getDependencies(): array
3939
}
4040

4141
/**
42-
* @throws Zend_Validate_Exception
4342
* @throws LocalizedException
43+
* @throws ValidateException
4444
*/
4545
public function apply()
4646
{
@@ -55,6 +55,10 @@ public function apply()
5555
$this->moduleDataSetup->endSetup();
5656
}
5757

58+
/**
59+
* @throws LocalizedException
60+
* @throws ValidateException
61+
*/
5862
private function addAttributes(EavSetup $eavSetup): void
5963
{
6064
$eavSetup->addAttribute(Product::ENTITY, 'is_purchasable', [
@@ -107,7 +111,7 @@ private function addDefaultValues(EavSetup $eavSetup): void
107111
$this->addDefaultValue($eavSetup, $eavSetup->getAttribute(Product::ENTITY, $attributeCode));
108112
}
109113
}
110-
114+
111115
private function addDefaultValue(EavSetup $eavSetup, array $attribute): void
112116
{
113117
$connection = $this->productResource->getConnection();

0 commit comments

Comments
 (0)