The expression return $this->query->count() could return the type Illuminate\Database\Eloquent\Builder which is incompatible with the type-hinted return integer. Consider adding an additional type-check to rule them out.
Loading history...
47
}
48
49
/**
50
* Apply query sort.
51
*
52
* @param string $column
53
* @param string $direction
54
*/
55
public function sort(string $column, string $direction): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.