Skip to content

Commit

Permalink
PHP 8.1 is now stable and marked as default version
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 25, 2021
1 parent bee5abe commit 4c5c122
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -113,11 +113,11 @@ On all supported OS/Platforms the following PHP versions are supported as per th
|`7.3`|`Stable`|`Security fixes only`|`GitHub-hosted`, `self-hosted`|
|`7.4`|`Stable`|`Active`|`GitHub-hosted`, `self-hosted`|
|`8.0`|`Stable`|`Active`|`GitHub-hosted`, `self-hosted`|
|`8.1`|`Nightly`|`In development`|`GitHub-hosted`, `self-hosted`|
|`8.1`|`Stable`|`Active`|`GitHub-hosted`, `self-hosted`|
|`8.2`|`Nightly`|`In development`|`GitHub-hosted`, `self-hosted`|

**Notes:**
- Specifying `8.1` and `8.2` in `php-version` input installs a nightly build of `PHP 8.1.0-dev` and `PHP 8.2.0-dev` respectively. See [nightly build setup](#nightly-build-setup) for more information.
- Specifying `8.2` in `php-version` input installs a nightly build of `PHP 8.2.0-dev`. See [nightly build setup](#nightly-build-setup) for more information.
- To use JIT on `PHP 8.0` and above, refer to the [JIT configuration](#jit-configuration) section.

## :heavy_plus_sign: PHP Extension Support
Expand Down Expand Up @@ -506,7 +506,7 @@ jobs:

### Nightly Build Setup

> Setup a nightly build of `PHP 8.1` or `PHP 8.2`.
> Setup a nightly build of `PHP 8.2`.
- This version is currently in development.
- Some user space extensions might not support this version currently.
Expand All @@ -516,7 +516,7 @@ steps:
- name: Setup nightly PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
extensions: mbstring
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
Expand Down
2 changes: 1 addition & 1 deletion __tests__/install.test.ts
Expand Up @@ -71,7 +71,7 @@ describe('Install', () => {
${'8.1'} | ${'darwin'} | ${''} | ${''} | ${''} | ${''} | ${'initial script bash darwin.sh 8.1 ' + __dirname}
${'7.3'} | ${'linux'} | ${''} | ${''} | ${''} | ${''} | ${'initial script bash linux.sh 7.3 ' + __dirname}
${'7.3'} | ${'linux'} | ${'a, b'} | ${'a=b'} | ${'x'} | ${'phpunit'} | ${'initial script add_tool install extensions set coverage driver edit php.ini bash linux.sh 7.3 ' + __dirname}
${'latest'} | ${'linux'} | ${''} | ${''} | ${''} | ${''} | ${'initial script bash linux.sh 8.0 ' + __dirname}
${'latest'} | ${'linux'} | ${''} | ${''} | ${''} | ${''} | ${'initial script bash linux.sh 8.1 ' + __dirname}
${'7.0'} | ${'win32'} | ${''} | ${''} | ${''} | ${''} | ${'initial script pwsh win32.ps1 7.0 ' + __dirname}
${'7.3'} | ${'win32'} | ${''} | ${''} | ${''} | ${''} | ${'initial script pwsh win32.ps1 7.3 ' + __dirname}
${'7.3'} | ${'win32'} | ${'a, b'} | ${'a=b'} | ${'x'} | ${''} | ${'initial script install extensions set coverage driver edit php.ini pwsh win32.ps1 7.3 ' + __dirname}
Expand Down
2 changes: 1 addition & 1 deletion __tests__/utils.test.ts
Expand Up @@ -64,7 +64,7 @@ describe('Utils tests', () => {
}
}
);
expect(await utils.parseVersion('latest')).toBe('8.0');
expect(await utils.parseVersion('latest')).toBe('8.1');
expect(await utils.parseVersion('7')).toBe('7.0');
expect(await utils.parseVersion('7.4')).toBe('7.4');
expect(await utils.parseVersion('5.x')).toBe('5.6');
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -7,7 +7,7 @@ branding:
inputs:
php-version:
description: 'Setup PHP version.'
default: '8.0'
default: '8.1'
required: true
extensions:
description: 'Setup PHP extensions.'
Expand Down
4 changes: 2 additions & 2 deletions src/configs/php-versions.json
@@ -1,7 +1,7 @@
{
"latest": "8.0",
"latest": "8.1",
"nightly": "8.2",
"5.x": "5.6",
"7.x": "7.4",
"8.x": "8.0"
"8.x": "8.1"
}
2 changes: 1 addition & 1 deletion src/scripts/win32.ps1
Expand Up @@ -3,7 +3,7 @@ param (
[ValidateNotNull()]
[ValidateLength(1, [int]::MaxValue)]
[string]
$version = '8.0',
$version = '8.1',
[Parameter(Position = 1, Mandatory = $true)]
[ValidateNotNull()]
[ValidateLength(1, [int]::MaxValue)]
Expand Down

0 comments on commit 4c5c122

Please sign in to comment.