Skip to content

Commit

Permalink
Add some type hinting to fix a warning about implicitly marking param…
Browse files Browse the repository at this point in the history
…eter
  • Loading branch information
bendauphinee committed Dec 23, 2024
1 parent ca40646 commit 553c9e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BladeRouteGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class BladeRouteGenerator
{
public static $generated;

public function generate($group = null, ?string $nonce = null): string
public function generate(?array $group = null, ?string $nonce = null): string
{
$ziggy = new Ziggy($group);

Expand All @@ -28,10 +28,10 @@ public function generate($group = null, ?string $nonce = null): string
return (string) new $output($ziggy, $routeFunction, $nonce);
}

private function generateMergeJavascript(Ziggy $ziggy, string $nonce)
private function generateMergeJavascript(Ziggy $ziggy, string $nonce): string
{
$output = config('ziggy.output.merge_script', MergeScript::class);

dd($output);
return new $output($ziggy, $nonce);
}
}

0 comments on commit 553c9e9

Please sign in to comment.