From e33789402f951f40e2ca47a1e1552bc8fcedf054 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 23 Sep 2024 15:15:34 +1200 Subject: [PATCH] DEP Increase minimum version of silverstripe/framework --- src/Clear.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Clear.php b/src/Clear.php index 7a4bf33..2004431 100644 --- a/src/Clear.php +++ b/src/Clear.php @@ -26,6 +26,11 @@ class Clear extends Controller public function __construct() { parent::__construct(); + if (!method_exists(Deprecation::class, 'withSuppressedNotice') + || !method_exists(Deprecation::class, 'notice') + ) { + return; + } Deprecation::withSuppressedNotice(function () { Deprecation::notice( '1.1.0',