Fix various phpstan errors

This commit is contained in:
Fabien Potencier
2024-07-30 09:45:47 +02:00
parent ae04075ed1
commit ae4f284043
11 changed files with 31 additions and 19 deletions
+5 -2
View File
@@ -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")
;
}