From 0575a9608fd8acb467132ac5c320ca2e803b7935 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 18 Sep 2024 10:54:07 +1200 Subject: [PATCH] ENH Don't use deprecated method --- src/Tasks/UpdatePackageInfoTask.php | 4 ++-- src/Util/ModuleHealthLoader.php | 2 +- src/Util/SupportedAddonsLoader.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Tasks/UpdatePackageInfoTask.php b/src/Tasks/UpdatePackageInfoTask.php index e11e400..6750bae 100644 --- a/src/Tasks/UpdatePackageInfoTask.php +++ b/src/Tasks/UpdatePackageInfoTask.php @@ -115,7 +115,7 @@ public function getSupportedAddonsLoader() */ public function setSupportedAddonsLoader(SupportedAddonsLoader $supportedAddonsLoader) { - Deprecation::withNoReplacement( + Deprecation::withSuppressedNotice( fn() => Deprecation::notice('3.3.0', 'Will be removed without equivalent functionality') ); $this->supportedAddonsLoader = $supportedAddonsLoader; @@ -139,7 +139,7 @@ public function getModuleHealthLoader() */ public function setModuleHealthLoader(ModuleHealthLoader $moduleHealthLoader) { - Deprecation::withNoReplacement( + Deprecation::withSuppressedNotice( fn() => Deprecation::notice('3.2.0', 'Will be removed without equivalent functionality') ); $this->moduleHealthLoader = $moduleHealthLoader; diff --git a/src/Util/ModuleHealthLoader.php b/src/Util/ModuleHealthLoader.php index 59f637c..c71e1a9 100644 --- a/src/Util/ModuleHealthLoader.php +++ b/src/Util/ModuleHealthLoader.php @@ -17,7 +17,7 @@ class ModuleHealthLoader extends ApiLoader public function __construct() { - Deprecation::withNoReplacement( + Deprecation::withSuppressedNotice( fn() => Deprecation::notice( '3.2.0', 'Will be removed without equivalent functionality', diff --git a/src/Util/SupportedAddonsLoader.php b/src/Util/SupportedAddonsLoader.php index 72ed7ae..bdf5b20 100644 --- a/src/Util/SupportedAddonsLoader.php +++ b/src/Util/SupportedAddonsLoader.php @@ -13,7 +13,7 @@ class SupportedAddonsLoader extends ApiLoader { public function __construct() { - Deprecation::withNoReplacement( + Deprecation::withSuppressedNotice( fn() => Deprecation::notice( '3.2.0', 'Use ' . UpdatePackageInfoTask::class . '::getSupportedPackages() instead.',