From 10fdc183e7f36a6925e34796b1c4ad92918c9598 Mon Sep 17 00:00:00 2001 From: Tom Knapen Date: Tue, 9 Sep 2025 11:46:59 +0200 Subject: [PATCH] php(8.4): fix deprecation warnings --- src/Lexer.php | 2 +- src/Parser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lexer.php b/src/Lexer.php index 8791030..80aac02 100644 --- a/src/Lexer.php +++ b/src/Lexer.php @@ -13,7 +13,7 @@ class Lexer /** * @param SubLexerInterface $subLexer */ - public function __construct(SubLexerInterface $subLexer = null) + public function __construct(?SubLexerInterface $subLexer = null) { $this->subLexer = $subLexer ?: static::createDefaultSubLexer(); } diff --git a/src/Parser.php b/src/Parser.php index 3fb80dc..aa86e90 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -15,7 +15,7 @@ class Parser /** * @param NodeParserInterface $nodeParser */ - public function __construct(NodeParserInterface $nodeParser = null) + public function __construct(?NodeParserInterface $nodeParser = null) { $this->nodeParser = $nodeParser ?: static::createDefaultNodeParser(); }