From d64035d0d6b3dbeed3a6839e3833779aaecf3513 Mon Sep 17 00:00:00 2001 From: Giso Stallenberg Date: Tue, 14 Apr 2020 11:11:09 +0200 Subject: [PATCH] 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 --- Extension/WorkflowExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extension/WorkflowExtension.php b/Extension/WorkflowExtension.php index d5a2e759..b5f3bade 100644 --- a/Extension/WorkflowExtension.php +++ b/Extension/WorkflowExtension.php @@ -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