$this of type Cycle\ORM\Select\Traits\OrderByTrait is incompatible with the type Cycle\ORM\Select\AbstractLoader expected by parameter $loader of Cycle\ORM\Select\QueryBuilder::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
28
$proxy = new QueryBuilder($query, /** @scrutinizer ignore-type */ $this);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.