Skip to content

Commit 00eebca

Browse files
Fixing reset for Magento/Catalog/Model/Product/Media/Config
1 parent 33eed95 commit 00eebca

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Catalog/Model/Product/Media

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/Product/Media/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Config implements ConfigInterface, ResetAfterRequestInterface
3030
private $attributeHelper;
3131

3232
/**
33-
* @var string[]
33+
* @var string[]|null
3434
*/
3535
private $mediaAttributeCodes;
3636

@@ -206,6 +206,6 @@ private function getAttributeHelper()
206206
*/
207207
public function _resetState(): void
208208
{
209-
$this->mediaAttributeCodes = [];
209+
$this->mediaAttributeCodes = null;
210210
}
211211
}

0 commit comments

Comments
 (0)