The expression preg_replace('/<(\\/?(?:..., '<$1', $rendered); of type string|string[] adds the type string[] to the return on line 41 which is incompatible with the return type declared by the interface League\CommonMark\Block\...ndererInterface::render of type League\CommonMark\HtmlElement|string|null.
Loading history...
42
}
43
44
/**
45
* {@inheritdoc}
46
*/
47
78
public function setConfiguration(ConfigurationInterface $configuration)
48
{
49
78
if ($this->htmlBlockRenderer instanceof ConfigurationAwareInterface) {