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 cb9a5c00e4f..58ca7327a85 100644 --- a/src/TokenParser/TypesTokenParser.php +++ b/src/TokenParser/TypesTokenParser.php @@ -48,7 +48,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()); } public function getTag(): string