From c0e59512d2ad1e80829410451da0bc25e5b5cc61 Mon Sep 17 00:00:00 2001 From: George Steel Date: Tue, 30 Jul 2024 15:30:33 +0100 Subject: [PATCH] Add support for PHP 8.4 and set current stable to 8.1 Signed-off-by: George Steel --- src/config/app.spec.ts | 8 ++++---- src/config/php.ts | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/config/app.spec.ts b/src/config/app.spec.ts index 80b4c718..1ff13b5c 100644 --- a/src/config/app.spec.ts +++ b/src/config/app.spec.ts @@ -18,9 +18,9 @@ describe('config/app', () => { ${'8.1'} | ${[ '8.1' ]} ${'8.1.0'} | ${[ '8.1' ]} ${'8.1.12'} | ${[ '8.1' ]} - ${'^8.1'} | ${[ '8.1', '8.2', '8.3' ]} - ${'^8.1.0'} | ${[ '8.1', '8.2', '8.3' ]} - ${'^8.1.12'} | ${[ '8.1', '8.2', '8.3' ]} + ${'^8.1'} | ${[ '8.1', '8.2', '8.3', '8.4' ]} + ${'^8.1.0'} | ${[ '8.1', '8.2', '8.3', '8.4' ]} + ${'^8.1.12'} | ${[ '8.1', '8.2', '8.3', '8.4' ]} ${'~8.1'} | ${[ '8.1' ]} ${'~8.1.0'} | ${[ '8.1' ]} ${'~8.1.12'} | ${[ '8.1' ]} @@ -48,7 +48,7 @@ describe('config/app', () => { codeChecks : true, docLinting : true, versions : [ '8.1' ], - stablePhpVersion : '8.0', + stablePhpVersion : '8.1', minimumPhpVersion : '8.1', latestPhpVersion : '8.1', lockedDependenciesExists : false, diff --git a/src/config/php.ts b/src/config/php.ts index 04882e41..4a77577e 100644 --- a/src/config/php.ts +++ b/src/config/php.ts @@ -8,8 +8,9 @@ export const PHP_80 = '8.0'; export const PHP_81 = '8.1'; export const PHP_82 = '8.2'; export const PHP_83 = '8.3'; +export const PHP_84 = '8.4'; -export const CURRENT_STABLE = PHP_80; +export const CURRENT_STABLE = PHP_81; export const CONTAINER_DEFAULT_PHP_VERSION = '@default'; /** @@ -27,6 +28,7 @@ export const INSTALLABLE_VERSIONS = [ PHP_81, PHP_82, PHP_83, + PHP_84, CONTAINER_DEFAULT_PHP_VERSION, ] as const;