We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e84aa0 commit a1ac048Copy full SHA for a1ac048
app/code/core/Mage/Core/Model/Layout.php
@@ -594,7 +594,7 @@ public function getMessagesBlock()
594
595
/**
596
* @param string $type
597
- * @return Mage_Core_Block_Abstract
+ * @return Mage_Core_Block_Abstract|object
598
*/
599
public function getBlockSingleton($type)
600
{
@@ -604,7 +604,6 @@ public function getBlockSingleton($type)
604
Mage::throwException(Mage::helper('core')->__('Invalid block type: %s', $type));
605
}
606
607
- // phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
608
$helper = new $className();
609
if ($helper) {
610
if ($helper instanceof Mage_Core_Block_Abstract) {
0 commit comments