Skip to content

Commit

Permalink
Add support for PHP 8.4 alpha versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Jul 10, 2024
1 parent cb264c2 commit bb42a65
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
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 bb42a65

Please sign in to comment.