From 5a7de23cff17d5e2a1147e1e14024777de7eefd3 Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Tue, 21 Nov 2023 16:48:06 +1300 Subject: [PATCH] MNT New PHP 8.3 support --- consts.php | 62 +++++++++++++++++++++++++++++++++++++++- tests/JobCreatorTest.php | 7 +++-- 2 files changed, 65 insertions(+), 4 deletions(-) diff --git a/consts.php b/consts.php index 3e69073..b4575f8 100644 --- a/consts.php +++ b/consts.php @@ -31,9 +31,14 @@ '8.1', '8.2', ], - '5' => [ + '5.2' => [ '8.1', '8.2', + '8.3', + ], + '5' => [ + '8.1', + '8.2' ], ]; @@ -529,4 +534,59 @@ 'silverstripe-versionfeed' => '3.1', 'silverstripe-webauthn-authenticator' => '5.1', ], + '5.2' => [ + 'cwp-agencyextensions' => '3.1', + 'cwp-starter-theme' => '4.0', + 'cwp-watea-theme' => '4.0', + 'silverstripe-advancedworkflow' => '6.1', + 'silverstripe-auditor' => '3.0', + 'silverstripe-blog' => '4.1', + 'silverstripe-composer-update-checker' => '4.0', + 'silverstripe-contentreview' => '5.1', + 'silverstripe-crontask' => '3.0', + 'silverstripe-developer-docs' => '5.1', + 'silverstripe-documentconverter' => '3.1', + 'silverstripe-dynamodb' => '5.0', + 'silverstripe-elemental' => '5.1', + 'silverstripe-elemental-bannerblock' => '3.1', + 'silverstripe-elemental-fileblock' => '3.1', + 'silverstripe-elemental-userforms' => '4.1', + 'silverstripe-environmentcheck' => '3.0', + 'silverstripe-externallinks' => '3.1', + 'silverstripe-fluent' => '7.0', + 'silverstripe-graphql' => '5.1', + 'silverstripe-gridfield-bulk-editing-tools' => '4.0', + 'silverstripe-gridfieldextensions' => '4.0', + 'silverstripe-gridfieldqueuedexport' => '3.1', + 'silverstripe-hybridsessions' => '3.0', + 'silverstripe-iframe' => '3.1', + 'silverstripe-ldap' => '2.1', + 'silverstripe-login-forms' => '5.1', + 'silverstripe-lumberjack' => '3.0', + 'silverstripe-maintenance' => '3.0', + 'silverstripe-mfa' => '5.1', + 'silverstripe-mimevalidator' => '3.0', + 'silverstripe-multivaluefield' => '6.0', + 'silverstripe-queuedjobs' => '5.0', + 'silverstripe-realme' => '5.2', + 'silverstripe-registry' => '3.1', + 'silverstripe-restfulserver' => '3.0', + 'silverstripe-securityreport' => '3.0', + 'silverstripe-segment-field' => '3.1', + 'silverstripe-session-manager' => '2.1', + 'silverstripe-sharedraftcontent' => '3.1', + 'silverstripe-simple' => '3.3', + 'silverstripe-sitewidecontent-report' => '4.1', + 'silverstripe-spamprotection' => '4.1', + 'silverstripe-staticpublishqueue' => '6.1', + 'silverstripe-subsites' => '3.1', + 'silverstripe-tagfield' => '3.1', + 'silverstripe-taxonomy' => '3.1', + 'silverstripe-textextraction' => '4.0', + 'silverstripe-totp-authenticator' => '5.1', + 'silverstripe-userforms' => '6.1', + 'silverstripe-vendor-plugin' => '2.0', + 'silverstripe-versionfeed' => '3.1', + 'silverstripe-webauthn-authenticator' => '5.1', + ], ]; diff --git a/tests/JobCreatorTest.php b/tests/JobCreatorTest.php index 927c4fe..98b80a9 100644 --- a/tests/JobCreatorTest.php +++ b/tests/JobCreatorTest.php @@ -514,6 +514,7 @@ public function provideGetPhpVersion(): array ['^7 <7.4', ['7.3', '7.3', '7.3', '7.3']], ['7.3-7.4', ['7.3', '7.4', '7.4', '7.4']], ['7.3 - 8.0', ['7.3', '7.4', '8.0', '8.0']], + ['^8.1', ['8.1', '8.2', '8.3']], ]; } @@ -675,9 +676,9 @@ public function provideGetInstallerVersionCMS5FromComposer(): array // fallback to looking at deps in composer.json, use current minor of installer .x-dev ['myaccount/silverstripe-admin', 'mybranch', ['silverstripe/framework' => '5.x-dev'], '5.x-dev'], ['myaccount/silverstripe-admin', 'mybranch', ['silverstripe/framework' => '5.0.x-dev'], '5.0.x-dev'], - ['myaccount/silverstripe-admin', 'mybranch', ['silverstripe/framework' => '^5'], '5.1.x-dev'], - ['myaccount/silverstripe-somemodule', 'mybranch', ['silverstripe/cms' => '^5'], '5.1.x-dev'], - ['myaccount/silverstripe-somemodule', 'mybranch', ['silverstripe/admin' => '^2'], '5.1.x-dev'], + ['myaccount/silverstripe-admin', 'mybranch', ['silverstripe/framework' => '^5'], '5.2.x-dev'], + ['myaccount/silverstripe-somemodule', 'mybranch', ['silverstripe/cms' => '^5'], '5.2.x-dev'], + ['myaccount/silverstripe-somemodule', 'mybranch', ['silverstripe/admin' => '^2'], '5.2.x-dev'], ['myaccount/silverstripe-somemodule', '3', ['silverstripe/framework' => '^5'], '5.x-dev'], ]; }