From ebbbaf7069b402b4d1b9baeb569cd9ac66be911b Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 19 Sep 2024 13:43:42 +0200 Subject: [PATCH] Use a more precise return type in AbstractTwigCallable --- src/AbstractTwigCallable.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AbstractTwigCallable.php b/src/AbstractTwigCallable.php index 2e9b34d18..d85f0f861 100644 --- a/src/AbstractTwigCallable.php +++ b/src/AbstractTwigCallable.php @@ -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;