Commit 2f33a2a7 authored by bojanz's avatar bojanz

Issue #3100871 by kadamk, bojanz: WorkflowState and WorkflowTransition doesn't...

Issue #3100871 by kadamk, bojanz: WorkflowState and WorkflowTransition doesn't cast to string properly
parent f6f44cc4
......@@ -51,7 +51,7 @@ class WorkflowState {
* The translated label.
*/
public function getLabel() {
return t($this->label, [], ['context' => 'workflow state']);
return (string) t($this->label, [], ['context' => 'workflow state']);
}
/**
......
......@@ -71,7 +71,7 @@ class WorkflowTransition {
* The translated label.
*/
public function getLabel() {
return t($this->label, [], ['context' => 'workflow transition']);
return (string) t($this->label, [], ['context' => 'workflow transition']);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment