4 * This file is part of Twig.
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Twig\Node\Expression\Binary;
16 class GreaterEqualBinary extends AbstractBinary
18 public function compile(Compiler $compiler): void
20 if (\PHP_VERSION_ID >= 80000) {
21 parent::compile($compiler);
27 ->raw('(0 <= twig_compare(')
28 ->subcompile($this->getNode('left'))
30 ->subcompile($this->getNode('right'))
35 public function operator(Compiler $compiler): Compiler
37 return $compiler->raw('>=');