Skip to content

Commit

Permalink
Replace ext version if it's identical to the PHP version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayesh committed Nov 22, 2024
1 parent 38bc37d commit 55e8294
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Sources/ExtensionListSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ private static function handleExtensionList(array $extList, Output $output) {
if ($metafile !== false && file_exists($metafile)) {
$meta = require $metafile;
} else {
$extVersion = $reflection->getVersion();
if ($extVersion !== PHP_VERSION) {
$extVersion = '__DYNAMIC__PHP Version';
}
// embed generic meta data
$meta = array(
'type' => 'extension',
Expand All @@ -46,7 +50,7 @@ private static function handleExtensionList(array $extList, Output $output) {
'added' => '0.0',
'deprecated' => $reflection,
'removed' => null,
'version' => $reflection->getVersion(),
'version' => $extVersion,
'resources' => static::generateResources($name),
);
}
Expand Down

0 comments on commit 55e8294

Please sign in to comment.