From c6f022bb2d7a2d5ccb38deb58688cde52f9ba486 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 28 Oct 2024 23:17:54 +0100 Subject: [PATCH] Mark extensions as such in search index --- src/Command/IndexPackagesCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Command/IndexPackagesCommand.php b/src/Command/IndexPackagesCommand.php index 9f1900a5a..a16e96bce 100644 --- a/src/Command/IndexPackagesCommand.php +++ b/src/Command/IndexPackagesCommand.php @@ -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;