2020
2121use CloudCreativity \LaravelJsonApi \Contracts \Pagination \PagingStrategyInterface ;
2222use Illuminate \Database \Eloquent \Builder as EloquentBuilder ;
23- use Illuminate \Database \Eloquent \Builder ;
2423use Illuminate \Database \Eloquent \Relations \Relation ;
24+ use Illuminate \Database \Query \Builder as QueryBuilder ;
2525use Illuminate \Support \Collection ;
2626use Neomerx \JsonApi \Contracts \Encoder \Parameters \EncodingParametersInterface ;
2727use Neomerx \JsonApi \Contracts \Http \Query \QueryParametersParserInterface ;
@@ -227,7 +227,7 @@ protected function willSimplePaginate($query)
227227 /**
228228 * Apply a deterministic order to the page.
229229 *
230- * @param Builder |Relation $query
230+ * @param QueryBuilder|EloquentBuilder |Relation $query
231231 * @return $this
232232 * @see https://github.com/cloudcreativity/laravel-json-api/issues/313
233233 */
@@ -246,7 +246,7 @@ protected function defaultOrder($query)
246246 * If the primary key has not been used for a sort order already, we use it
247247 * to ensure the page has a deterministic order.
248248 *
249- * @param Builder |Relation $query
249+ * @param QueryBuilder|EloquentBuilder |Relation $query
250250 * @return bool
251251 */
252252 protected function doesRequireOrdering ($ query )
@@ -264,7 +264,7 @@ protected function doesRequireOrdering($query)
264264 }
265265
266266 /**
267- * @param Builder |Relation $query
267+ * @param QueryBuilder|EloquentBuilder |Relation $query
268268 * @param Collection $pagingParameters
269269 * @return mixed
270270 */
0 commit comments