From 58da5eedce26d713d545868de4dcfc33779146b8 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:27:42 +1200 Subject: [PATCH] ENH Don't use deprecated method (#164) --- src/Task/RealMeSetupTask.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Task/RealMeSetupTask.php b/src/Task/RealMeSetupTask.php index 04159d6..b7d2c1f 100644 --- a/src/Task/RealMeSetupTask.php +++ b/src/Task/RealMeSetupTask.php @@ -72,7 +72,7 @@ public function run($request) $this->outputMetadataXmlContent($forEnv); - Deprecation::withNoReplacement(function () use ($forEnv) { + Deprecation::withSuppressedNotice(function () use ($forEnv) { $this->message(PHP_EOL . _t( RealMeSetupTask::class . '.BUILD_FINISH', 'RealMe setup complete. Please copy the XML into a file for upload to the {env} environment or ' . @@ -81,7 +81,7 @@ public function run($request) )); }); } catch (Exception $e) { - Deprecation::withNoReplacement(fn() => $this->message($e->getMessage() . PHP_EOL)); + Deprecation::withSuppressedNotice(fn() => $this->message($e->getMessage() . PHP_EOL)); } } @@ -139,7 +139,7 @@ private function validateInputs($forEnv) } - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedNotice(function () { $this->message(_t( RealMeSetupTask::class . '.VALIDATION_SUCCESS', 'Validation succeeded, continuing with setup...' @@ -155,7 +155,7 @@ private function validateInputs($forEnv) private function outputMetadataXmlContent($forEnv) { // Output metadata XML so that it can be sent to RealMe via the agency - Deprecation::withNoReplacement(function () use ($forEnv) { + Deprecation::withSuppressedNotice(function () use ($forEnv) { $this->message(_t( RealMeSetupTask::class . '.OUPUT_PREFIX', 'Metadata XML is listed below for the \'{env}\' RealMe environment, this should be sent to the ' . @@ -189,7 +189,7 @@ private function outputMetadataXmlContent($forEnv) ) ); - Deprecation::withNoReplacement(fn() => $this->message($message)); + Deprecation::withSuppressedNotice(fn() => $this->message($message)); } /**