Use a more precise return type in AbstractTwigCallable

This commit is contained in:
Christophe Coevoet
2024-09-19 13:43:42 +02:00
parent 70886ec75e
commit ebbbaf7069
+3
View File
@@ -104,6 +104,9 @@ abstract class AbstractTwigCallable implements TwigCallableInterface
return $this->options['needs_context'];
}
/**
* @return static
*/
public function withDynamicArguments(string $name, string $dynamicName, array $arguments): self
{
$new = clone $this;