Skip to content

Commit e1fea38

Browse files
committed
fixes
1 parent 1b1052a commit e1fea38

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,8 +1308,10 @@ public function getPathVars($args = null)
13081308

13091309
/**
13101310
* Retrieve class name from config.xml node
1311+
*
1312+
* @return string|false
13111313
*/
1312-
public function getNodeClassName(string $path): string
1314+
public function getNodeClassName(string $path)
13131315
{
13141316
$config = Mage::getConfig()->getNode($path);
13151317
if (!$config) {
@@ -1427,8 +1429,10 @@ public function getHelperClassName($helperAlias)
14271429

14281430
/**
14291431
* Retrieve helper instance
1432+
*
1433+
* @return Mage_Core_Helper_Abstract|false
14301434
*/
1431-
public function getHelperInstance(string $helperAlias): Mage_Core_Helper_Abstract|false
1435+
public function getHelperInstance(string $helperAlias)
14321436
{
14331437
$className = $this->getHelperClassName($helperAlias);
14341438
if (!class_exists($className)) {
@@ -1525,10 +1529,9 @@ public function getResourceHelperClassName(string $moduleAlias): string|false
15251529
/**
15261530
* Retrieve resource helper instance
15271531
*
1528-
* @param string $moduleAlias
15291532
* @return Mage_Core_Model_Resource_Helper_Abstract|false
15301533
*/
1531-
public function getResourceHelperInstance(string $moduleAlias): Mage_Core_Model_Resource_Helper_Abstract|false
1534+
public function getResourceHelperInstance(string $moduleAlias)
15321535
{
15331536
$className = $this->getResourceHelperClassName($moduleAlias);
15341537
if ($className === false || !class_exists($className)) {

0 commit comments

Comments
 (0)