mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
Fix minor things
This commit is contained in:
@@ -86,7 +86,7 @@ class MacroNode extends Node
|
||||
;
|
||||
}
|
||||
|
||||
$node = new CaptureNode($this->getNode('body'), $this->getNode('body')->lineno, $this->getNode('body')->tag);
|
||||
$node = new CaptureNode($this->getNode('body'), $this->getNode('body')->lineno);
|
||||
|
||||
$compiler
|
||||
->write('')
|
||||
|
||||
@@ -25,7 +25,7 @@ final class ReflectionCallable
|
||||
private $name;
|
||||
|
||||
public function __construct(
|
||||
private TwigCallableInterface $twigCallable,
|
||||
TwigCallableInterface $twigCallable,
|
||||
) {
|
||||
$callable = $twigCallable->getCallable();
|
||||
if (\is_string($callable) && false !== $pos = strpos($callable, '::')) {
|
||||
|
||||
@@ -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