Latte\Runtime\Template::checkBlockContentType PHP Method

checkBlockContentType() protected method

protected checkBlockContentType ( $current, $name ) : void
return void
    protected function checkBlockContentType($current, $name)
    {
        $expected =& $this->blockTypes[$name];
        if ($expected === NULL) {
            $expected = $current;
        } elseif ($expected !== $current) {
            trigger_error("Overridden block {$name} with content type " . strtoupper($current) . ' by incompatible type ' . strtoupper($expected) . '.', E_USER_WARNING);
        }
    }