Skip to content

Commit

Permalink
Cast scope to string before passing it
Browse files Browse the repository at this point in the history
  • Loading branch information
rskuipers committed May 29, 2022
1 parent aaab50e commit 9744b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Turbo/Twig/TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function turboStreamListen(Environment $env, $topic, ?string $transport =
throw new \InvalidArgumentException(sprintf('The Turbo stream transport "%s" does not support scope.', $transport));
}

return $turboStreamListenRenderer->renderScopedTurboStreamListen($env, $topic, $scope);
return $turboStreamListenRenderer->renderScopedTurboStreamListen($env, $topic, (string)$scope);
}

return $turboStreamListenRenderer->renderTurboStreamListen($env, $topic);
Expand Down

0 comments on commit 9744b04

Please sign in to comment.