mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-21 15:48:42 +00:00
Make Node::__toString() more readable
This commit is contained in:
@@ -39,6 +39,11 @@ abstract class AbstractTwigCallable implements TwigCallableInterface
|
||||
], $options);
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return sprintf('%s(%s)', static::class, $this->name);
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
|
||||
Reference in New Issue
Block a user