Remove return type for Twig function workflow_metadata()
Technically it is allowed to have metadata other than string, even data that does not cast to string, like an array. Also see https://github.com/symfony/symfony/issues/36391
This commit is contained in:
parent
b3333e552d
commit
55664c5a17
@ -117,7 +117,7 @@ class WorkflowExtension extends AbstractExtension
|
|||||||
* Use a string (the place name) to get place metadata
|
* Use a string (the place name) to get place metadata
|
||||||
* Use a Transition instance to get transition metadata
|
* Use a Transition instance to get transition metadata
|
||||||
*/
|
*/
|
||||||
public function getMetadata($subject, string $key, $metadataSubject = null, string $name = null): ?string
|
public function getMetadata($subject, string $key, $metadataSubject = null, string $name = null)
|
||||||
{
|
{
|
||||||
return $this
|
return $this
|
||||||
->workflowRegistry
|
->workflowRegistry
|
||||||
|
Reference in New Issue
Block a user