Bolt\Storage\Query\QueryParameterParser::incorrectQueryHandler PHP Method

incorrectQueryHandler() public method

Handles some errors in key/value string formatting.
public incorrectQueryHandler ( string $key, string $value, Doctrine\DBAL\Query\Expression\ExpressionBuilder $expr )
$key string
$value string
$expr Doctrine\DBAL\Query\Expression\ExpressionBuilder
    public function incorrectQueryHandler($key, $value, $expr)
    {
        if (strpos($value, '&&') && strpos($value, '||')) {
            throw new QueryParseException('Mixed && and || operators are not supported', 1);
        }
    }