public function testWhenToUseNullSafeOperator(Filter
$filter, bool
$expected): void
{ $parser =
$this->
getContainer()->
get(SqlQueryParser::
class);
$definition =
$this->
getContainer()->
get(ProductDefinition::
class);
$parsed =
$parser->
parse($filter,
$definition, Context::
createDefaultContext(), 'product'
);
$has = false;
foreach ($parsed->
getWheres() as $where) { $has =
$has ||
str_contains((string) $where, '<=>'
);
} static::
assertEquals($expected,
$has);
} /**
* @return iterable<array-key, array{0: Filter, 1: bool}>
*/
public static function whenToUseNullSafeOperatorProvider() {