Skip to content

Commit

Permalink
Remove return type for Twig function workflow_metadata()
Browse files Browse the repository at this point in the history
Technically it is allowed to have metadata other than string, even data that does not cast to string, like an array.
Also see symfony/symfony#36391
  • Loading branch information
gisostallenberg committed Apr 14, 2020
1 parent bc9071d commit d64035d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extension/WorkflowExtension.php
Expand Up @@ -117,7 +117,7 @@ public function getMarkedPlaces($subject, $placesNameOnly = true, $name = null)
* 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
Expand Down

0 comments on commit d64035d

Please sign in to comment.