mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
complete Evaluators list + autoload
This commit is contained in:
18
sources/PhpParser/Evaluation/UnaryPlusEvaluator.php
Normal file
18
sources/PhpParser/Evaluation/UnaryPlusEvaluator.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Combodo\iTop\PhpParser\Evaluation;
|
||||
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\UnaryPlus;
|
||||
|
||||
class UnaryPlusEvaluator extends AbstractExprEvaluator {
|
||||
public function GetHandledExpressionType(): ?string {
|
||||
return UnaryPlus::class;
|
||||
}
|
||||
|
||||
public function Evaluate(Expr $oExpr): mixed {
|
||||
/** @var UnaryPlus $oExpr */
|
||||
|
||||
return + PhpExpressionEvaluator::GetInstance()->EvaluateExpression($oExpr->expr);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user