*/
public function displayParentBlock($name, array $context, array $blocks = array())
{
+ $name = (string) $name;
+
if (isset($this->traits[$name])) {
$this->traits[$name][0]->displayBlock($name, $context, $blocks);
} elseif (false !== $parent = $this->getParent($context)) {
*/
public function displayBlock($name, array $context, array $blocks = array())
{
+ $name = (string) $name;
+
if (isset($blocks[$name])) {
$b = $blocks;
unset($b[$name]);
*/
public function hasBlock($name)
{
- return isset($this->blocks[$name]);
+ return isset($this->blocks[(string) $name]);
}
/**