Skip to content

Commit 99d2e1b

Browse files
author
Gary Lockett
committed
fix incorrect version extraction by using .99 patch number
Signed-off-by: Gary Lockett <[email protected]>
1 parent eacb2c3 commit 99d2e1b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/config/app.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ describe('config/app', () => {
88
${'7.0'} | ${[ '7.0' ]}
99
${'^7.0'} | ${[ '7.0', '7.1', '7.2', '7.3', '7.4' ]}
1010
${'8.1'} | ${[ '8.1' ]}
11-
${'8.1.0'} | ${[ '8.1' ]}
12-
${'8.1.12'} | ${[ '8.1' ]}
11+
${'8.1.0'} | ${[ ]}
12+
${'8.1.12'} | ${[ ]}
1313
${'^8.1'} | ${[ '8.1', '8.2' ]}
1414
${'^8.1.0'} | ${[ '8.1', '8.2' ]}
1515
${'^8.1.12'} | ${[ '8.1', '8.2' ]}

src/config/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function gatherVersions(composerJson: ComposerJson): InstallablePhpVersio
2828
}
2929

3030
return INSTALLABLE_VERSIONS
31-
.filter((version) => semver.satisfies(`${version}.0`, composerPhpVersion));
31+
.filter((version) => semver.satisfies(`${version}.99`, composerPhpVersion));
3232
}
3333

3434
function gatherExtensions(composerJson: ComposerJson): Set<string> {

0 commit comments

Comments
 (0)