Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Oct 8, 2024
1 parent b2f5520 commit 2d54553
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/PrettyPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
use TypeLang\Parser\Node\Stmt\Shape\NamedFieldNode;
use TypeLang\Parser\Node\Stmt\Shape\NumericFieldNode;
use TypeLang\Parser\Node\Stmt\Shape\StringNamedFieldNode;
use TypeLang\Parser\Node\Stmt\Template\ArgumentNode as TemplateArgumentNode;
use TypeLang\Parser\Node\Stmt\Template\ArgumentsListNode as TemplateArgumentsListNode;
use TypeLang\Parser\Node\Stmt\Template\ArgumentNode;
use TypeLang\Parser\Node\Stmt\Template\ArgumentsListNode;
use TypeLang\Parser\Node\Stmt\Template\TemplateArgumentsListNode;
use TypeLang\Parser\Node\Stmt\TernaryConditionNode;
use TypeLang\Parser\Node\Stmt\TypesListNode;
use TypeLang\Parser\Node\Stmt\TypeStatement;
Expand Down Expand Up @@ -293,10 +294,11 @@ protected function printShapeFieldName(FieldNode $field): string
}

/**
* @param ArgumentsListNode<ArgumentNode>|TemplateArgumentsListNode $arguments
* @return non-empty-string
* @throws NonPrintableNodeException
*/
protected function printTemplateArgumentsNode(TemplateArgumentsListNode $arguments): string
protected function printTemplateArgumentsNode(ArgumentsListNode $arguments): string
{
$result = [];

Expand All @@ -317,7 +319,7 @@ protected function printTemplateArgumentsNode(TemplateArgumentsListNode $argumen
* @return non-empty-string
* @throws NonPrintableNodeException
*/
protected function printTemplateArgumentNode(TemplateArgumentNode $argument): string
protected function printTemplateArgumentNode(ArgumentNode $argument): string
{
$result = $this->make($argument->value);

Expand Down

0 comments on commit 2d54553

Please sign in to comment.