Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Don't use deprecated method #164

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading