From 55664c5a17ecdb5d291df21a10a9b87675130bb5 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 --- src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php b/src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php index d5a2e759aa..b5f3badea8 100644 --- a/src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php +++ b/src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php @@ -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