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] 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); });