We are using querybuilder 2.0 and we are seeing the following behaviour:
$test = (new Query())->whereRaw('price > IF(state = "TX", ?, 100)', [200])->from('test');
echo $test->toMySQL();
Results in
SELECT * FROM test WHERE [{raw}] price > IF(state = "TX", 200, 100)
There's an [{raw}] statement in the query, which shouldn't be there