Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PHP 8.4 alpha versions #1842

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading