mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-19 10:15:12 +00:00
Fix iterable return type
Currently, the PHPDoc states that a string should be returned, but that's not correct. It can be anything that is echo-able. That means any scalar, Stringable and even null.
This commit is contained in:
@@ -34,7 +34,7 @@ class BlockTest extends NodeTestCase
|
||||
$tests[] = [new BlockNode('foo', new TextNode('foo', 1), 1), <<<EOF
|
||||
// line 1
|
||||
/**
|
||||
* @return iterable<string>
|
||||
* @return iterable<null|scalar|\Stringable>
|
||||
*/
|
||||
public function block_foo(array \$context, array \$blocks = []): iterable
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user