From f15b48be1b4d648d1242e0102688fd7da7cfc4eb Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:07:50 +1200 Subject: [PATCH] ENH Don't use deprecated method (#243) --- 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.',