From 51fc75bfbb2bcf257f061e2483de03249a3a7c31 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 18 Sep 2024 10:53:14 +1200 Subject: [PATCH] ENH Don't use deprecated method --- 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..e3cc2a85 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::withSuppressedWarning(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..203d984d 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::withSuppressedWarning(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..84584134 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::withSuppressedWarning(function () { Deprecation::notice( '5.4.0', 'Will be replaced with SilverStripe\GraphQL\Extensions\DbBuildExtension',