Skip to content

Commit

Permalink
ENH Don't use deprecated method (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Sep 18, 2024
1 parent f7ba0a5 commit 58da5ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Task/RealMeSetupTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ' .
Expand All @@ -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));
}
}

Expand Down Expand Up @@ -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...'
Expand All @@ -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 ' .
Expand Down Expand Up @@ -189,7 +189,7 @@ private function outputMetadataXmlContent($forEnv)
)
);

Deprecation::withNoReplacement(fn() => $this->message($message));
Deprecation::withSuppressedNotice(fn() => $this->message($message));
}

/**
Expand Down

0 comments on commit 58da5ee

Please sign in to comment.