Skip to content

Commit

Permalink
Change datastar.sse() argument signature
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Dec 31, 2024
1 parent d6b422a commit a766517
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/variables/DatastarVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit a766517

Please sign in to comment.