From a766517e14f3c58ffeef7baa6acb33ef8365fd90 Mon Sep 17 00:00:00 2001 From: Ben Croker Date: Mon, 30 Dec 2024 18:32:02 -0600 Subject: [PATCH] Change `datastar.sse()` argument signature --- src/variables/DatastarVariable.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/variables/DatastarVariable.php b/src/variables/DatastarVariable.php index abce01e..e3f9c71 100644 --- a/src/variables/DatastarVariable.php +++ b/src/variables/DatastarVariable.php @@ -13,10 +13,8 @@ class DatastarVariable /** * Returns a Datastar SSE action. */ - public function sse(string $template, array $options = []): string + public function sse(string $template, array $variables = [], array $options = []): string { - $variables = $options['variables'] ?? []; - unset($options['variables']); $method = $options['method'] ?? 'get'; $includeCsrfToken = strtolower($method) !== 'get';