Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"doctrine/inflector": "^2.0.8",
"doctrine/orm": "^2.17.2",
"symfony/filesystem": "^5.4||^6.0",
"twig/twig": "^3.9.3"
"twig/twig": "^3.14.2"
},
"require-dev": {
"composer/composer": "^2.0.0",
Expand Down
14 changes: 6 additions & 8 deletions src/Twig/PerLineNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,17 @@ class PerLineNode extends Node
/**
* Create new PerLineNode
*
* @param Node $lines
* @param string $prefix
* @param string $postfix
* @param int $lineno
* @param string $tag
* @param Node $lines
* @param string $prefix
* @param string $postfix
* @param int $lineno
*/
public function __construct(Node $lines, $prefix, $postfix, $lineno, $tag = 'perline')
public function __construct(Node $lines, $prefix, $postfix, $lineno)
{
parent::__construct(
['lines' => $lines],
['prefix' => $prefix, 'postfix' => $postfix],
$lineno,
$tag
$lineno
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Twig/PerLineTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private function parseBody(Node $body): PerLineNode
// tag. This is the case when the perline tags could be removed without
// an effect in the generated code.
if (count($body) === 0) {
return new PerLineNode($body, '', '', $lineno, $this->getTag());
return new PerLineNode($body, '', '', $lineno);
}

// Get all the nodes as array, because it will be modified.
Expand Down Expand Up @@ -114,6 +114,6 @@ private function parseBody(Node $body): PerLineNode
}

// Return the new structured node.
return new PerLineNode($nodes, $prefix, $postfix, $lineno, $this->getTag());
return new PerLineNode($nodes, $prefix, $postfix, $lineno);
}
}
Loading