Skip to content

Commit 63834da

Browse files
ACPT-1194
fixing static test failures
1 parent 616d898 commit 63834da

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/GroupPrice/AbstractGroupPrice.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ abstract class AbstractGroupPrice extends Price implements ResetAfterRequestInte
4040
abstract protected function _getDuplicateErrorMessage();
4141

4242
/**
43-
* Catalog product type
44-
*
4543
* @var \Magento\Catalog\Model\Product\Type
4644
*/
4745
protected $_catalogProductType;

app/code/Magento/Eav/Model/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,8 @@ public function _resetState(): void
990990
{
991991
$this->attributesPerSet = [];
992992
$this->_attributeData = [];
993-
foreach($this->attributes as $attributesGroupedByEntityTypeCode) {
994-
foreach($attributesGroupedByEntityTypeCode as $attribute) {
993+
foreach ($this->attributes as $attributesGroupedByEntityTypeCode) {
994+
foreach ($attributesGroupedByEntityTypeCode as $attribute) {
995995
if ($attribute instanceof ResetAfterRequestInterface) {
996996
$attribute->_resetState();
997997
}

app/code/Magento/Eav/Model/Entity/Attribute/AbstractAttribute.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ abstract class AbstractAttribute extends \Magento\Framework\Model\AbstractExtens
2727
\Magento\Eav\Api\Data\AttributeInterface,
2828
ResetAfterRequestInterface
2929
{
30-
const TYPE_STATIC = 'static';
30+
public const TYPE_STATIC = 'static';
3131

3232
/**
3333
* Const for empty string value.
3434
*/
35-
const EMPTY_STRING = '';
35+
public const EMPTY_STRING = '';
3636

3737
/**
3838
* Attribute name
@@ -70,8 +70,6 @@ abstract class AbstractAttribute extends \Magento\Framework\Model\AbstractExtens
7070
protected $_source;
7171

7272
/**
73-
* Attribute id cache
74-
*
7573
* @var array
7674
*/
7775
protected $_attributeIdCache = [];
@@ -231,8 +229,6 @@ public function _resetState() : void
231229
/**
232230
* Get Serializer instance.
233231
*
234-
* @deprecated 101.0.0
235-
*
236232
* @return Json
237233
* @since 101.0.0
238234
*/
@@ -241,7 +237,6 @@ protected function getSerializer()
241237
if ($this->serializer === null) {
242238
$this->serializer = \Magento\Framework\App\ObjectManager::getInstance()->create(Json::class);
243239
}
244-
245240
return $this->serializer;
246241
}
247242

@@ -942,6 +937,7 @@ public function _getFlatColumnsDdlDefinition()
942937
* Used in database compatible mode
943938
*
944939
* @deprecated 101.0.0
940+
* @see MMDB
945941
* @return array
946942
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
947943
*/

0 commit comments

Comments
 (0)