You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Access registry directly in several Mage factory methods (#2319)
* refactor: Accessed _registry directly in several Mage factory methods.
Direct access is possible because null is no possibility due to executed code prior. This avoids additional isset checks being unnecessary.
* refactor: small code formatting adjustments
* refactor: Utilized null coalescing operator.
* fix: Try so solve PHPStan complaint due to changed return type of Mage::getSingleton().
* fix: Solved rest of PHPStan complaints due to changed return type of Mage::getSingleton().
Added explanation to type hints as well.
* fix: Reverted automatically replaced short list syntax due to php 7.0 compatibility.
* Revert "fix: Solved rest of PHPStan complaints due to changed return type of Mage::getSingleton()."
This reverts commit c9d165c.
* Revert "fix: Try so solve PHPStan complaint due to changed return type of Mage::getSingleton()."
This reverts commit fc9901c.
* fix: Reverted return type of getSingleton to original state.
0 commit comments