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 041b816 commit 47ad2c7Copy full SHA for 47ad2c7
lib/internal/Magento/Framework/View/Layout/Generator/Block.php
@@ -261,7 +261,7 @@ protected function getBlockInstance($block, array $arguments = [])
261
}
262
if (!$block instanceof \Magento\Framework\View\Element\AbstractBlock) {
263
throw new \Magento\Framework\Exception\LocalizedException(
264
- new \Magento\Framework\Phrase('Invalid block type: %1', [$block]),
+ new \Magento\Framework\Phrase('Invalid block type: %1', [is_object($block) ? get_class($block) : (string) $block]),
265
$e
266
);
267
0 commit comments