Skip to content

Commit d64035d

Browse files
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 symfony/symfony#36391
1 parent bc9071d commit d64035d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/WorkflowExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function getMarkedPlaces($subject, $placesNameOnly = true, $name = null)
117117
* Use a string (the place name) to get place metadata
118118
* Use a Transition instance to get transition metadata
119119
*/
120-
public function getMetadata($subject, string $key, $metadataSubject = null, string $name = null): ?string
120+
public function getMetadata($subject, string $key, $metadataSubject = null, string $name = null)
121121
{
122122
return $this
123123
->workflowRegistry

0 commit comments

Comments
 (0)