mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-20 06:29:03 +00:00
Fix various phpstan errors
This commit is contained in:
@@ -31,10 +31,13 @@ class PrintNode extends Node implements NodeOutputInterface
|
||||
|
||||
public function compile(Compiler $compiler): void
|
||||
{
|
||||
/** @var AbstractExpression */
|
||||
$expr = $this->getNode('expr');
|
||||
|
||||
$compiler
|
||||
->addDebugInfo($this)
|
||||
->write($this->getNode('expr')->isGenerator() ? 'yield from ' : 'yield ')
|
||||
->subcompile($this->getNode('expr'))
|
||||
->write($expr->isGenerator() ? 'yield from ' : 'yield ')
|
||||
->subcompile($expr)
|
||||
->raw(";\n")
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user