mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
16 lines
339 B
PHP
16 lines
339 B
PHP
<?php
|
|
|
|
namespace Combodo\iTop\PhpParser\Evaluation;
|
|
|
|
use PhpParser\Node\Expr\BinaryOp\BooleanOr;
|
|
|
|
class BooleanOrEvaluator extends BinaryOpEvaluator {
|
|
public function GetHandledExpressionType(): ?string {
|
|
return BooleanOr::class;
|
|
}
|
|
|
|
function EvaluateBinaryOperation(mixed $left, mixed $right) : mixed
|
|
{
|
|
return $left || $right;
|
|
}
|
|
} |