From 6f83afee9ecd09a0fa885eaff42b6914148d6049 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 19 Sep 2024 13:43:52 +1200 Subject: [PATCH 1/2] ENH Don't use deprecated method (#1826) --- code/LeftAndMainExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/LeftAndMainExtension.php b/code/LeftAndMainExtension.php index 9effb2106..540af76f2 100644 --- a/code/LeftAndMainExtension.php +++ b/code/LeftAndMainExtension.php @@ -16,10 +16,10 @@ abstract class LeftAndMainExtension extends Extension { public function __construct() { - // Wrapping with Deprecation::withNoReplacement() to avoid triggering deprecation notices + // Wrapping with Deprecation::withSuppressedNotice() to avoid triggering deprecation notices // as we are unable to update existing subclasses of this class until a new major // unless we add in the pointless empty methods that are in this class - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedNotice(function () { $class = Extension::class; Deprecation::notice('2.3.0', "Subclass $class instead", Deprecation::SCOPE_CLASS); }); From 817e68b3e8a7b9b4c3b0fcf3d22b192e56a08d4b Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 23 Sep 2024 15:14:31 +1200 Subject: [PATCH 2/2] DEP Increase minimum version of silverstripe/framework --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4f1d8c70b..16c9357f6 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ ], "require": { "php": "^8.1", - "silverstripe/framework": "^5.3", + "silverstripe/framework": "^5.4", "silverstripe/versioned": "^2", "silverstripe/vendor-plugin": "^2" },