|
@@ -10,7 +10,7 @@ use League\CommonMark\Util\HtmlElement;
|
|
|
|
|
|
class ColorRenderer implements NodeRendererInterface
|
|
|
{
|
|
|
- public function render(Node $node, ChildNodeRendererInterface $childRenderer)
|
|
|
+ public function render(Node $node, ChildNodeRendererInterface $childRenderer): \Stringable|string|null
|
|
|
{
|
|
|
if (!($node instanceof ColorText)) {
|
|
|
throw new \InvalidArgumentException('Le noeud doit être une instance de ColorText');
|