Skip to content

Commit 6355a71

Browse files
committed
ACPT-1052: Some Luma Storefront Scenarios Are Broken
1 parent 696cda8 commit 6355a71

File tree

11 files changed

+4
-84
lines changed

11 files changed

+4
-84
lines changed

app/code/Magento/Catalog/Model/Product/Option/Value.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -462,12 +462,5 @@ public function setOptionTypeId($optionTypeId)
462462
return $this->setData(self::KEY_OPTION_TYPE_ID, $optionTypeId);
463463
}
464464

465-
/**
466-
* @inheritDoc
467-
*/
468-
public function _resetState(): void
469-
{
470-
// @todo
471-
}
472465
//@codeCoverageIgnoreEnd
473466
}

app/code/Magento/Catalog/Model/Product/Type/Price.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,4 @@ public function _resetState(): void
666666
{
667667
self::$attributeCache = [];
668668
}
669-
670-
671669
}

app/code/Magento/Catalog/Model/Product/Visibility.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @api
1515
* @since 100.0.2
1616
*/
17-
class Visibility implements OptionSourceInterface
17+
class Visibility extends \Magento\Framework\DataObject implements OptionSourceInterface
1818
{
1919
const VISIBILITY_NOT_VISIBLE = 1;
2020

@@ -49,6 +49,7 @@ public function __construct(
4949
array $data = []
5050
) {
5151
$this->_eavEntityAttribute = $eavEntityAttribute;
52+
parent::__construct($data);
5253
}
5354

5455
/**

app/code/Magento/Customer/Model/Config/Share.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,4 @@ public function getSharedWebsiteIds($websiteId)
139139
}
140140
return $ids;
141141
}
142-
143-
/**
144-
* @inheritDoc
145-
*/
146-
public function _resetState(): void
147-
{
148-
// @todo
149-
}
150-
151-
152142
}

app/code/Magento/Customer/Model/Customer.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,16 +1403,4 @@ public function getPassword()
14031403
{
14041404
return (string) $this->getData('password');
14051405
}
1406-
1407-
/**
1408-
* @inheritDoc
1409-
*/
1410-
public function _resetState(): void
1411-
{
1412-
// @todo:
1413-
1414-
$this->_data = [];
1415-
}
1416-
1417-
14181406
}

app/code/Magento/Customer/Model/Visitor.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -384,16 +384,4 @@ public function getOnlineInterval()
384384
);
385385
return $configValue ?: static::DEFAULT_ONLINE_MINUTES_INTERVAL;
386386
}
387-
388-
/**
389-
* @inheritDoc
390-
*/
391-
public function _resetState(): void
392-
{
393-
// @todo
394-
395-
$this->_data = [];
396-
}
397-
398-
399387
}

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,5 @@ public function setExtensionAttributes(\Magento\Eav\Api\Data\AttributeSetExtensi
491491
return $this->_setExtensionAttributes($extensionAttributes);
492492
}
493493

494-
/**
495-
* @inheritDoc
496-
*/
497-
public function _resetState(): void
498-
{
499-
// @todo
500-
}
501494
//@codeCoverageIgnoreEnd
502495
}

app/code/Magento/GraphQl/Controller/GraphQl.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,7 @@ private function getDataFromRequest(RequestInterface $request): array
223223
{
224224
/** @var Http $request */
225225
if ($request->isPost()) {
226-
try {
227-
$data = $this->jsonSerializer->unserialize($request->getContent());
228-
} catch (\InvalidArgumentException $e) {
229-
throw new \Exception($request->getContent(), $e->getCode(), $e);
230-
}
226+
$data = $this->jsonSerializer->unserialize($request->getContent());
231227
} elseif ($request->isGet()) {
232228
$data = $request->getParams();
233229
$data['variables'] = isset($data['variables']) ?

app/code/Magento/GraphQlCache/Model/CacheableQuery.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77

88
namespace Magento\GraphQlCache\Model;
99

10-
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
11-
1210
/**
1311
* CacheableQuery should be used as a singleton for collecting HTTP cache-related info and tags of all entities.
1412
*/
15-
class CacheableQuery implements ResetAfterRequestInterface
13+
class CacheableQuery
1614
{
1715
/**
1816
* @var string[]
@@ -77,13 +75,4 @@ public function shouldPopulateCacheHeadersWithTags() : bool
7775

7876
return !empty($cacheTags) && $isQueryCacheable;
7977
}
80-
81-
/**
82-
* @inheritDoc
83-
*/
84-
public function _resetState(): void
85-
{
86-
$this->cacheTags = [];
87-
$this->cacheable = true;
88-
}
8978
}

app/code/Magento/Theme/Model/Design.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,4 @@ public function getIdentities()
156156
{
157157
return [self::CACHE_TAG . '_' . $this->getId()];
158158
}
159-
160-
/**
161-
* @inheritDoc
162-
*/
163-
public function _resetState(): void
164-
{
165-
// @todo
166-
}
167159
}

0 commit comments

Comments
 (0)