Skip to content

Commit

Permalink
Mark extensions as such in search index
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Oct 28, 2024
1 parent 228366d commit c6f022b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Command/IndexPackagesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ private function packageToSearchableArray(Package $package, array $tags): array
$record['replacementPackage'] = '';
}

if (in_array($package->getType(), ['php-ext', 'php-ext-zend'], true)) {
$record['extension'] = 1;
}

$record['tags'] = $tags;

return $record;
Expand Down

0 comments on commit c6f022b

Please sign in to comment.