Closed
Description
Preconditions
- Magento version 2.1.0
Steps to reproduce
- Open file "vendor/magento/framework/App/State.php"
- Check 2 methods "getAreaCode" (line 136) & "setAreaCode" (line 119)
Expected result
- There should be a fix for this 2 methods to allow us to check if "$this->_areaCode" has been set or not then we can set if it has not been set.
- But the method "getAreaCode" always throw an exception
Suggestion
- Just return null / false if "$this->_areaCode" has not been set instead of throw exception in "getAreaCode" method
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Failed. Automatic verification of issue format is failedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release