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)); } /**