1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

chore: phpstan

This commit is contained in:
Sami Mazouz
2024-10-17 16:44:55 +01:00
parent 07b98030df
commit b866623c94

View File

@@ -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 = [];