From cd68de5e061146141ce36e023b5acc08e8df85a0 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Wed, 5 Jul 2023 11:30:59 +0200 Subject: [PATCH] Fix callable phpdoc for twig elements --- src/TwigFilter.php | 4 ++-- src/TwigFunction.php | 4 ++-- src/TwigTest.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/TwigFilter.php b/src/TwigFilter.php index 94e5f9b01..e59919dd3 100644 --- a/src/TwigFilter.php +++ b/src/TwigFilter.php @@ -29,7 +29,7 @@ final class TwigFilter private $arguments = []; /** - * @param callable|null $callable A callable implementing the filter. If null, you need to overwrite the "node_class" option to customize compilation. + * @param callable|array|null $callable A callable implementing the filter. If null, you need to overwrite the "node_class" option to customize compilation. */ public function __construct(string $name, $callable = null, array $options = []) { @@ -57,7 +57,7 @@ final class TwigFilter /** * Returns the callable to execute for this filter. * - * @return callable|null + * @return callable|array|null */ public function getCallable() { diff --git a/src/TwigFunction.php b/src/TwigFunction.php index 494d45b08..c10813224 100644 --- a/src/TwigFunction.php +++ b/src/TwigFunction.php @@ -29,7 +29,7 @@ final class TwigFunction private $arguments = []; /** - * @param callable|null $callable A callable implementing the function. If null, you need to overwrite the "node_class" option to customize compilation. + * @param callable|array|null $callable A callable implementing the function. If null, you need to overwrite the "node_class" option to customize compilation. */ public function __construct(string $name, $callable = null, array $options = []) { @@ -55,7 +55,7 @@ final class TwigFunction /** * Returns the callable to execute for this function. * - * @return callable|null + * @return callable|array|null */ public function getCallable() { diff --git a/src/TwigTest.php b/src/TwigTest.php index 4c18632f5..7b81d9978 100644 --- a/src/TwigTest.php +++ b/src/TwigTest.php @@ -28,7 +28,7 @@ final class TwigTest private $arguments = []; /** - * @param callable|null $callable A callable implementing the test. If null, you need to overwrite the "node_class" option to customize compilation. + * @param callable|array|null $callable A callable implementing the test. If null, you need to overwrite the "node_class" option to customize compilation. */ public function __construct(string $name, $callable = null, array $options = []) { @@ -51,7 +51,7 @@ final class TwigTest /** * Returns the callable to execute for this test. * - * @return callable|null + * @return callable|array|null */ public function getCallable() {