mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-17 16:33:03 +00:00
Add more types to Template class and compiled templates
This commit is contained in:
committed by
Fabien Potencier
parent
22abdfafae
commit
7e52a68097
@@ -33,7 +33,10 @@ class BlockTest extends NodeTestCase
|
||||
$tests = [];
|
||||
$tests[] = [new BlockNode('foo', new TextNode('foo', 1), 1), <<<EOF
|
||||
// line 1
|
||||
public function block_foo(\$context, array \$blocks = [])
|
||||
/**
|
||||
* @return iterable<string>
|
||||
*/
|
||||
public function block_foo(array \$context, array \$blocks = []): iterable
|
||||
{
|
||||
\$macros = \$this->macros;
|
||||
yield "foo";
|
||||
|
||||
Reference in New Issue
Block a user