Skip to content

Commit

Permalink
chore: phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Oct 21, 2023
1 parent 53060ec commit 6840b1f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions framework/core/src/Admin/Content/AdminPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,9 @@ protected function getSearchDrivers(): array
$searchDriversPerModel = [];

foreach ($this->container->make('flarum.search.drivers') as $driverClass => $searcherClasses) {
/**
* @var class-string<AbstractDriver> $driverClass
* @var array<class-string<AbstractModel>, class-string<SearcherInterface>> $searcherClasses
*/
/** @var array<class-string<AbstractModel>, class-string<SearcherInterface>> $searcherClasses */
foreach ($searcherClasses as $modelClass => $searcherClass) {
/** @var class-string<AbstractDriver> $driverClass */
$searchDriversPerModel[$modelClass][] = $driverClass::name();
}
}
Expand Down

0 comments on commit 6840b1f

Please sign in to comment.