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); } }