The expression preg_replace('/<(\\/?(?:..., '<$1', $rendered); of type string|string[] adds the type string[] to the return on line 39 which is incompatible with the return type declared by the interface League\CommonMark\Render...ndererInterface::render of type League\CommonMark\Util\HtmlElement|string|null.
Loading history...
40
}
41
42
78
public function setConfiguration(ConfigurationInterface $configuration): void
43
{
44
78
if ($this->innerRenderer instanceof ConfigurationAwareInterface) {