mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 07:45:34 +08:00
chore: phpstan
This commit is contained in:
parent
07b98030df
commit
b866623c94
|
@ -91,12 +91,8 @@ class PinStickiedDiscussionsToTop
|
|||
/**
|
||||
* Pin all stickied discussions to the top of 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)) {
|
||||
$query->orders = [];
|
||||
|
|
Loading…
Reference in New Issue
Block a user