Skip to content

Commit

Permalink
Merge pull request #1842 from brefphp/php84
Browse files Browse the repository at this point in the history
Add support for PHP 8.4 alpha versions
  • Loading branch information
mnapoli authored Jul 10, 2024
2 parents cb264c2 + 160fb66 commit ba73d7c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
php: [ '8.3', '8.2', '8.1', '8.0' ]
php: [ '8.4', '8.3', '8.2', '8.1', '8.0' ]
dependency-version: [ '' ]
platform-reqs: [ '' ]
include:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
tools: composer:v2, cs2pr
coverage: none
- name: Cache Composer dependencies
Expand All @@ -76,7 +76,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
tools: composer:v2, cs2pr
coverage: none
- name: Cache Composer dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-layer-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
tools: composer

- name: Install Composer dependencies
Expand Down
2 changes: 2 additions & 0 deletions docs/runtimes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ Bref currently provides runtimes for PHP 8.0, 8.1, 8.2 and 8.3:
- `php-81-console`
- `php-80-console`

Bref also provides runtimes for alpha versions of PHP 8.4.

<Callout>
`php-80` means PHP 8.0.\*. It is not possible to require a specific "patch" version. The latest Bref versions always aim to support the latest PHP versions, so upgrade via Composer frequently to keep PHP up to date.
</Callout>
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ServerlessPlugin {
.filter(name => !name.startsWith('arm-'));
// Console runtimes must have a PHP version provided
this.runtimes = this.runtimes.filter(name => name !== 'console');
this.runtimes.push('php-80-console', 'php-81-console', 'php-82-console', 'php-83-console');
this.runtimes.push('php-80-console', 'php-81-console', 'php-82-console', 'php-83-console', 'php-84-console');

this.checkCompatibleRuntime();

Expand Down
4 changes: 4 additions & 0 deletions utils/layers.json/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
require_once __DIR__ . '/../../vendor/autoload.php';

const LAYER_NAMES = [
'php-84',
'php-84-fpm',
'php-83',
'php-83-fpm',
'php-82',
Expand All @@ -21,6 +23,8 @@
'php-81-fpm',
'php-80',
'php-80-fpm',
'arm-php-84',
'arm-php-84-fpm',
'arm-php-83',
'arm-php-83-fpm',
'arm-php-82',
Expand Down

0 comments on commit ba73d7c

Please sign in to comment.