mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-19 05:46:41 +00:00
Merge branch '3.x' into 4.x
* 3.x: Fix CS Remove redundant "$thing instanceof \Countable" check Update PHPUnit schema fix TwigExtraBundle tests with Symfony 6.0/6.1
This commit is contained in:
+1
-1
@@ -269,7 +269,7 @@ class Parser
|
||||
$this->embeddedTemplates[] = $template;
|
||||
}
|
||||
|
||||
public function addImportedSymbol(string $type, string $alias, string $name = null, AbstractExpression $node = null): void
|
||||
public function addImportedSymbol(string $type, string $alias, ?string $name = null, ?AbstractExpression $node = null): void
|
||||
{
|
||||
$this->importedSymbols[0][$type][$alias] = ['name' => $name, 'node' => $node];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user