$this of type Staudenmeir\LaravelCte\C...ons\CreatesQueryBuilder is incompatible with the type Illuminate\Database\Connection expected by parameter $connection of Staudenmeir\LaravelCte\Q...\Builder::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
16
return new Builder(/** @scrutinizer ignore-type */ $this);