Skip to content

Commit c6f022b

Browse files
committed
Mark extensions as such in search index
1 parent 228366d commit c6f022b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Command/IndexPackagesCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ private function packageToSearchableArray(Package $package, array $tags): array
234234
$record['replacementPackage'] = '';
235235
}
236236

237+
if (in_array($package->getType(), ['php-ext', 'php-ext-zend'], true)) {
238+
$record['extension'] = 1;
239+
}
240+
237241
$record['tags'] = $tags;
238242

239243
return $record;

0 commit comments

Comments
 (0)