Skip to content

Commit 8843cfc

Browse files
committed
Fix more phpstan issues
1 parent 252b7f2 commit 8843cfc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Factory/MarkdownCliRendererFactory.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class MarkdownCliRendererFactory
4848
*/
4949
public function __invoke(ContainerInterface $c): CliRenderer
5050
{
51+
/** @var Terminal $terminal */
5152
$terminal = $c->get(Terminal::class);
5253

5354
$codeRender = new FencedCodeRenderer();
@@ -72,10 +73,13 @@ public function __invoke(ContainerInterface $c): CliRenderer
7273
Link::class => new LinkRenderer(),
7374
];
7475

76+
/** @var Color $color */
77+
$color = $c->get(Color::class);
78+
7579
return new CliRenderer(
7680
$blockRenderers,
7781
$inlineBlockRenderers,
78-
$c->get(Color::class)
82+
$color
7983
);
8084
}
8185
}

0 commit comments

Comments
 (0)