mirror of
https://github.com/flarum/core.git
synced 2025-08-05 16:07:34 +02:00
chore: phpstan
This commit is contained in:
@@ -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 = [];
|
||||||
|
Reference in New Issue
Block a user