$query of type Volosyuk\SimpleEloquent\Builder is incompatible with the type Illuminate\Database\Query\Builder expected by parameter $query of Volosyuk\SimpleEloquent\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
27
return new Builder(/** @scrutinizer ignore-type */ $query);
Loading history...
28
}
29
30
/**
31
* Get all of the models from the database.
32
*
33
* @param array|mixed $columns
34
* @return Collection|stdClass[]|array
35
*/
36
1
public static function allSimple($columns = ['*'])
It seems like newQuery() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
43
$query = (new static)->/** @scrutinizer ignore-call */ newQuery();