Skip to content

Commit

Permalink
Remove deprecated $tag argument from TypesNode constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
drjayvee committed Aug 29, 2024
1 parent 917cdd5 commit 85a7cca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Node/TypesNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/TokenParser/TypesTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85a7cca

Please sign in to comment.