Skip to content

Commit

Permalink
Fix Token::__toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 25, 2025
1 parent 939c032 commit 11535e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(

public function __toString(): string
{
return \sprintf('%s(%s)', $this->toEnglish(), $this->value);
return \sprintf('%s(%s)', self::typeToString($this->type, true), $this->value);
}

/**
Expand Down

0 comments on commit 11535e9

Please sign in to comment.