Skip to content

Commit

Permalink
minor #4557 Fix Token::__toString() (fabpot)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

Fix Token::__toString()

Broken by #4554

Commits
-------

11535e9 Fix Token::__toString()
  • Loading branch information
fabpot committed Jan 25, 2025
2 parents b680354 + 11535e9 commit fcd0332
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 fcd0332

Please sign in to comment.