Skip to content

Commit adf7de2

Browse files
committed
Merge commit 'refs/pull/2037/head' of https://github.com/magento/magento2 into MAGETWO-58370
2 parents 9d0c8f9 + 47ad2c7 commit adf7de2

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/View/Layout/Generator

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Layout/Generator/Block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ protected function getBlockInstance($block, array $arguments = [])
261261
}
262262
if (!$block instanceof \Magento\Framework\View\Element\AbstractBlock) {
263263
throw new \Magento\Framework\Exception\LocalizedException(
264-
new \Magento\Framework\Phrase('Invalid block type: %1', [$block]),
264+
new \Magento\Framework\Phrase('Invalid block type: %1', [is_object($block) ? get_class($block) : (string) $block]),
265265
$e
266266
);
267267
}

0 commit comments

Comments
 (0)