diff --git a/src/Node/TypesNode.php b/src/Node/TypesNode.php index 27f0b1d2a9d..00624b63559 100644 --- a/src/Node/TypesNode.php +++ b/src/Node/TypesNode.php @@ -17,11 +17,11 @@ #[YieldReady] class TypesNode extends Node implements NodeCaptureInterface { - public function __construct(ArrayExpression $typesNode, int $lineno, ?string $tag = null) + public function __construct(ArrayExpression $typesNode, int $lineno) { $this->validateMapping($typesNode); - parent::__construct(['mapping' => $typesNode], [], $lineno, $tag); + parent::__construct(['mapping' => $typesNode], [], $lineno); } protected function validateMapping(ArrayExpression $typesNode): void diff --git a/src/TokenParser/TypesTokenParser.php b/src/TokenParser/TypesTokenParser.php index 2bbe183fbee..bc2cb3d0cb7 100644 --- a/src/TokenParser/TypesTokenParser.php +++ b/src/TokenParser/TypesTokenParser.php @@ -41,7 +41,7 @@ public function parse(Token $token): Node $stream->expect(Token::BLOCK_END_TYPE); - return new TypesNode($expression, $token->getLine(), $this->getTag()); + return new TypesNode($expression, $token->getLine()); } /**