From b63f118de487f5efe6dc0e6a2b8767bddf97737e Mon Sep 17 00:00:00 2001 From: amnuts Date: Wed, 24 May 2023 13:49:09 +0100 Subject: [PATCH] Cannot get release to run, so forced in changes --- dist/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dist/index.js b/dist/index.js index 1bfcd1b0c..585ea0be8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -885,6 +885,17 @@ async function addPhive(data) { } exports.addPhive = addPhive; async function addPHPUnitTools(data) { + if (data['version'] == 'latest') { + if (/7\.3|8\.0/.test(data['php_version'])) { + data['version'] = '9.6.8'; + } else if (/7\.[2-3]/.test(data['php_version'])) { + data['version'] = '8.5.33'; + } else if (/7\.[1-3]/.test(data['php_version'])) { + data['version'] = '7.5.20'; + } else if (/7\.[0-2]/.test(data['php_version'])) { + data['version'] = '6.5.14'; + } + } data['url'] = await getPharUrl(data); return await addArchive(data); }