mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-03 14:07:34 +00:00
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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user