src/ExpressionLanguage.php
public function evaluate($expression, $values=[]) {
        if(is_array($values)) {
            return parent::evaluate($expression, $values);
        } else {
            return $this->parse($expression, $values->getKeys())->getNodes()->evaluate($this->functions, $values);
        }
    }
public function evaluate($expression, $values=[]) {
        if(is_array($values)) {
            return parent::evaluate($expression, $values);
        } else {
            return $this->parse($expression, $values->getKeys())->getNodes()->evaluate($this->functions, $values);
        }
    }
public function evaluate ( $ expression , $ values = [ ] ) { if ( is_array ( $ values ) ) { return parent :: evaluate ( $ expression , $ values ) ; } else { return $ this -> parse ( $ expression , $ values -> getKeys ( ) ) -> getNodes ( ) -> evaluate ( $ this -> functions , $ values ) ; } }
Evaluate an expression.
Overridden to allow passing in a SymbolTable.
@param \Symfony\Component\ExpressionLanguage\Expression|string $expression
@param SymbolTable|array|\ArrayAccess $values
@return mixed
Evaluate an expression . Overridden to allow passing in a SymbolTable .