Fix WordPress.WP.I18n.NonSingularStringLiteralText errors
[MAILPOET-4524]
This commit is contained in:
@@ -76,7 +76,7 @@ class UpdateWorkflowController {
|
||||
private function checkWorkflowStatus(string $status): void {
|
||||
if (!in_array($status, [Workflow::STATUS_ACTIVE, Workflow::STATUS_INACTIVE, Workflow::STATUS_DRAFT], true)) {
|
||||
// translators: %s is the status.
|
||||
throw UnexpectedValueException::create()->withMessage(__(sprintf('Invalid status: %s', $status), 'mailpoet'));
|
||||
throw UnexpectedValueException::create()->withMessage(sprintf(__('Invalid status: %s', 'mailpoet'), $status));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user