minor #4557 Fix Token::__toString() (fabpot)

This PR was merged into the 3.x branch.

Discussion
----------

Fix Token::__toString()

Broken by #4554

Commits
-------

11535e9058 Fix Token::__toString()
This commit is contained in:
Fabien Potencier
2025-01-25 16:41:44 +01:00
+1 -1
View File
@@ -42,7 +42,7 @@ final class Token
public function __toString(): string
{
return \sprintf('%s(%s)', $this->toEnglish(), $this->value);
return \sprintf('%s(%s)', self::typeToString($this->type, true), $this->value);
}
/**