-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failedGate 1 Failed. Automatic verification of issue format is failed
Description
\Magento\Framework\App\ScopeDefault::getId()
returns 1
where I with my Magento 1 background would expect 0
to be the correct result.
I have not seen this behavior trigger any bugs in the code so I would like to hear if anyone can confirm whatever the current implementation is correct or not.
magento2/lib/internal/Magento/Framework/App/ScopeDefault.php
Lines 23 to 31 in 8c7c700
/** | |
* Get scope identifier | |
* | |
* @return int | |
*/ | |
public function getId() | |
{ | |
return 1; | |
} |
Steps to produce
/** @var \Magento\Framework\App\ScopeDefault $scopeDefault */
$scopeDefault = \Magento\Framework\App\ObjectManager::getInstance()
->create(\Magento\Framework\App\ScopeInterface::class);
var_dump($scopeDefault->getId());
Expected result
int(0)
Actual result
int(1)
Metadata
Metadata
Assignees
Labels
Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failedGate 1 Failed. Automatic verification of issue format is failed