Skip to content

Commit a1ac048

Browse files
committed
updated docblock
1 parent 6e84aa0 commit a1ac048

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/core/Mage/Core/Model/Layout.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ public function getMessagesBlock()
594594

595595
/**
596596
* @param string $type
597-
* @return Mage_Core_Block_Abstract
597+
* @return Mage_Core_Block_Abstract|object
598598
*/
599599
public function getBlockSingleton($type)
600600
{
@@ -604,7 +604,6 @@ public function getBlockSingleton($type)
604604
Mage::throwException(Mage::helper('core')->__('Invalid block type: %s', $type));
605605
}
606606

607-
// phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
608607
$helper = new $className();
609608
if ($helper) {
610609
if ($helper instanceof Mage_Core_Block_Abstract) {

0 commit comments

Comments
 (0)