diff --git a/src/Parser.php b/src/Parser.php index 20f810c..2aa7fd4 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -31,8 +31,8 @@ class Parser * @param string|string[] $endSep */ public function __construct( - YAMLParser $yamlParser = null, - MarkdownParser $markdownParser = null, + ?YAMLParser $yamlParser = null, + ?MarkdownParser $markdownParser = null, $startSep = '---', $endSep = '---' ) {