Skip to content

Commit

Permalink
version must be a string that php function version_compare work right (
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-tools authored Mar 5, 2024
1 parent 9222f08 commit 5fe5f54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
}
$directory = basename(dirname($metadataFile));
$metadata['url'] = $gitRepository;
$metadata['version'] = strval($metadata['version']);
$metadata['method'] = TYPE_GIT;
$metadata['directory'] = ($directory === sha1($gitRepository)) ? '.' : $directory;
$extensions[] = $metadata;
Expand Down

0 comments on commit 5fe5f54

Please sign in to comment.