From b5138f30bc264879f12b4c81b05b68fadb7ab0a3 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 18 Sep 2024 10:52:41 +1200 Subject: [PATCH] ENH Don't use deprecated method --- src/Controllers/CronTaskController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/CronTaskController.php b/src/Controllers/CronTaskController.php index d68a3f5..bb4ebc3 100644 --- a/src/Controllers/CronTaskController.php +++ b/src/Controllers/CronTaskController.php @@ -37,7 +37,7 @@ class CronTaskController extends Controller public function __construct() { parent::__construct(); - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '3.1.0', 'Will be replaced with SilverStripe\CronTask\Cli\CronTaskCommand',