diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index e8e39766..4f5ea292 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -90,4 +90,4 @@ jobs: php -r "if(ini_get('memory_limit')!='-1') {throw new Exception('memory_limit not disabled');}" php -r "if(ini_get('post_max_size')!='256M') {throw new Exception('post_max_size not added');}" php -r "if(ini_get('short_open_tag')!=1) {throw new Exception('short_open_tag not added');}" - php -r "if(ini_get('date.timezone')!='Asia/Kolkata') {throw new Exception('date.timezone not added');}" \ No newline at end of file + php -r "if(ini_get('date.timezone')!='Asia/Kolkata') {throw new Exception('date.timezone not added');}" diff --git a/dist/index.js b/dist/index.js index 5248428f..5544c284 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1156,7 +1156,7 @@ async function getManifestURL() { exports.getManifestURL = getManifestURL; async function parseVersion(version) { switch (true) { - case /^(latest|nightly|\d+\.x)$/.test(version): + case /^(latest|lowest|nightly|\d+\.x)$/.test(version): return JSON.parse((await fetch.fetch(await getManifestURL()))['data'])[version]; default: switch (true) { diff --git a/src/configs/php-versions.json b/src/configs/php-versions.json index aa48bae3..8bb14306 100644 --- a/src/configs/php-versions.json +++ b/src/configs/php-versions.json @@ -1,7 +1,8 @@ { + "lowest": "8.1", "latest": "8.3", "nightly": "8.4", "5.x": "5.6", "7.x": "7.4", "8.x": "8.3" -} \ No newline at end of file +} diff --git a/src/utils.ts b/src/utils.ts index c42b9310..a35fb339 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -59,7 +59,7 @@ export async function getManifestURL(): Promise { */ export async function parseVersion(version: string): Promise { switch (true) { - case /^(latest|nightly|\d+\.x)$/.test(version): + case /^(latest|lowest|nightly|\d+\.x)$/.test(version): return JSON.parse((await fetch.fetch(await getManifestURL()))['data'])[ version ];