Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4630172 commit 22d9c80Copy full SHA for 22d9c80
dist/index.js
@@ -885,6 +885,17 @@ async function addPhive(data) {
885
}
886
exports.addPhive = addPhive;
887
async function addPHPUnitTools(data) {
888
+ if (data['version'] == 'latest') {
889
+ if (/7\.3|8\.0/.test(data['php_version'])) {
890
+ data['version'] = '9.6.8';
891
+ } else if (/7\.[2-3]/.test(data['php_version'])) {
892
+ data['version'] = '8.5.33';
893
+ } else if (/7\.[1-3]/.test(data['php_version'])) {
894
+ data['version'] = '7.5.20';
895
+ } else if (/7\.[0-2]/.test(data['php_version'])) {
896
+ data['version'] = '6.5.14';
897
+ }
898
899
data['url'] = await getPharUrl(data);
900
return await addArchive(data);
901
0 commit comments