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:
Giso Stallenberg 2020-04-14 11:11:09 +02:00
parent b3333e552d
commit 55664c5a17
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class WorkflowExtension extends AbstractExtension
* Use a string (the place name) to get place 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
->workflowRegistry