mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-08 04:45:47 +00:00
Fix minor things
This commit is contained in:
@@ -14,7 +14,7 @@ class TypesTokenParserTest extends TestCase
|
||||
public function testMappingParsing(string $template, array $expected): void
|
||||
{
|
||||
$env = new Environment(new ArrayLoader(), ['cache' => false, 'autoescape' => false]);
|
||||
$stream = $env->tokenize($source = new Source($template, ''));
|
||||
$stream = $env->tokenize(new Source($template, ''));
|
||||
$parser = new Parser($env);
|
||||
|
||||
$typesNode = $parser->parse($stream)->getNode('body')->getNode('0');
|
||||
|
||||
Reference in New Issue
Block a user