chore: phpstan

This commit is contained in:
Sami Mazouz 2024-10-17 16:44:55 +01:00
parent 07b98030df
commit b866623c94
No known key found for this signature in database

View File

@ -91,12 +91,8 @@ class PinStickiedDiscussionsToTop
/** /**
* Pin all stickied discussions to the top of the query. * Pin all stickied discussions to the top of the query.
* This is done by prepending an order clause to the query. * This is done by prepending an order clause to the query.
*
* @param $query
*
* @return void
*/ */
protected function pinStickiedToTop($query): void protected function pinStickiedToTop(Builder $query): void
{ {
if (! is_array($query->orders)) { if (! is_array($query->orders)) {
$query->orders = []; $query->orders = [];