Skip to content

Commit 0f8d9d9

Browse files
committed
1 parent 8b287c6 commit 0f8d9d9

File tree

3 files changed

+4
-30
lines changed

3 files changed

+4
-30
lines changed

.phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ parameters:
2121
- app/code/core/Mage/Admin/Model/Acl/Assert/Time.php
2222
- app/code/core/Mage/Api/Model/Acl/Assert/Ip.php
2323
- app/code/core/Mage/Api/Model/Acl/Assert/Time.php
24-
- app/code/core/Mage/Adminhtml/Block/Widget/Grid/Block.php
2524
- lib/Varien/Directory/Collection.php
2625
- lib/Varien/Directory/Factory.php
2726
- lib/Varien/File/Object.php

app/code/core/Mage/Adminhtml/Block/Widget/Grid/Block.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ protected function _generateAction($node, $parent)
353353
* @param string $method
354354
* @param string[] $args
355355
* @throws Mage_Core_Exception
356+
* @deprecated
357+
* @see Mage_Core_Helper_Security::validateAgainstBlockMethodBlacklist()
356358
*/
357359
protected function validateAgainstBlacklist(Mage_Core_Block_Abstract $block, $method, array $args)
358360
{
@@ -504,6 +506,7 @@ protected function _getBlockInstance($block, array $attributes = [])
504506
}
505507
}
506508
if (!$block instanceof Mage_Core_Block_Abstract) {
509+
$block = is_object($block) ? get_class($block) : $block;
507510
Mage::throwException(Mage::helper('core')->__('Invalid block type: %s', $block));
508511
}
509512
return $block;
@@ -587,7 +590,7 @@ public function getMessagesBlock()
587590

588591
/**
589592
* @param string $type
590-
* @return Mage_Core_Block_Abstract
593+
* @return Mage_Core_Block_Abstract|object
591594
*/
592595
public function getBlockSingleton($type)
593596
{

0 commit comments

Comments
 (0)