Fix callable phpdoc for twig elements

This commit is contained in:
Vincent Langlet
2023-07-05 11:30:59 +02:00
parent 58f7b22081
commit cd68de5e06
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ final class TwigFilter
private $arguments = []; 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<class-string, string>|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 = []) public function __construct(string $name, $callable = null, array $options = [])
{ {
@@ -57,7 +57,7 @@ final class TwigFilter
/** /**
* Returns the callable to execute for this filter. * Returns the callable to execute for this filter.
* *
* @return callable|null * @return callable|array<class-string, string>|null
*/ */
public function getCallable() public function getCallable()
{ {
+2 -2
View File
@@ -29,7 +29,7 @@ final class TwigFunction
private $arguments = []; 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<class-string, string>|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 = []) public function __construct(string $name, $callable = null, array $options = [])
{ {
@@ -55,7 +55,7 @@ final class TwigFunction
/** /**
* Returns the callable to execute for this function. * Returns the callable to execute for this function.
* *
* @return callable|null * @return callable|array<class-string, string>|null
*/ */
public function getCallable() public function getCallable()
{ {
+2 -2
View File
@@ -28,7 +28,7 @@ final class TwigTest
private $arguments = []; 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<class-string, string>|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 = []) public function __construct(string $name, $callable = null, array $options = [])
{ {
@@ -51,7 +51,7 @@ final class TwigTest
/** /**
* Returns the callable to execute for this test. * Returns the callable to execute for this test.
* *
* @return callable|null * @return callable|array<class-string, string>|null
*/ */
public function getCallable() public function getCallable()
{ {