for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPSA\Compiler\Expression;
use PHPSA\CompiledExpression;
use PHPSA\Context;
use PHPSA\Compiler\Expression;
use PHPSA\Compiler\Expression\AbstractExpressionCompiler;
class PrintOp extends AbstractExpressionCompiler
{
protected $name = 'PhpParser\Node\Expr\Print_';
/**
* print({expr})
*
* @param \PhpParser\Node\Expr\Print_ $expr
* @param Context $context
* @return CompiledExpression
*/
protected function compile($expr, Context $context)
$context->getExpressionCompiler()->compile($expr->expr);
return CompiledExpression::fromZvalValue(1);
}