I noticed fields are not checked inside match and yield no error.
match (true) {
true => $qb->orderBy('p.nonexistent', 'ASC'),
};
The same with switch correctly yields an error no field or association named nonexistent.
switch (true) {
case true:
$qb->orderBy('p.nonexistent', 'ASC');
break;
}
Is this because of Do not pass QueryBuilder to methods or is it something that can be solved?
I noticed fields are not checked inside match and yield no error.
The same with switch correctly yields an error
no field or association named nonexistent.Is this because of
Do not pass QueryBuilder to methodsor is it something that can be solved?