Skip to content

Commit

Permalink
chore: phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Oct 17, 2024
1 parent 07b9803 commit b866623
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions extensions/sticky/src/PinStickiedDiscussionsToTop.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,8 @@ public function __invoke(DatabaseSearchState $state, SearchCriteria $criteria):
/**
* 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 = [];
Expand Down

0 comments on commit b866623

Please sign in to comment.