From 4e9b3e376341d6f11b5268b740a7231a4b2dc149 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 19 Sep 2024 13:45:52 +1200 Subject: [PATCH] ENH Don't use deprecated method (#607) --- src/Dev/Build.php | 2 +- src/Dev/DevelopmentAdmin.php | 2 +- src/Extensions/DevBuildExtension.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Dev/Build.php b/src/Dev/Build.php index ed382c7b..1c31a38c 100644 --- a/src/Dev/Build.php +++ b/src/Dev/Build.php @@ -36,7 +36,7 @@ class Build extends Controller public function __construct() { parent::__construct(); - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedNotice(function () { Deprecation::notice( '5.4.0', 'Will be replaced with SilverStripe\GraphQL\Dev\SchemaBuild', diff --git a/src/Dev/DevelopmentAdmin.php b/src/Dev/DevelopmentAdmin.php index f2def245..dc9db04b 100644 --- a/src/Dev/DevelopmentAdmin.php +++ b/src/Dev/DevelopmentAdmin.php @@ -41,7 +41,7 @@ class DevelopmentAdmin extends Controller implements PermissionProvider public function __construct() { parent::__construct(); - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedNotice(function () { Deprecation::notice( '5.4.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Extensions/DevBuildExtension.php b/src/Extensions/DevBuildExtension.php index e4d87928..20cc1f43 100644 --- a/src/Extensions/DevBuildExtension.php +++ b/src/Extensions/DevBuildExtension.php @@ -28,7 +28,7 @@ class DevBuildExtension extends DataExtension public function __construct() { parent::__construct(); - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedNotice(function () { Deprecation::notice( '5.4.0', 'Will be replaced with SilverStripe\GraphQL\Extensions\DbBuildExtension',