diff --git a/src/BladeRouteGenerator.php b/src/BladeRouteGenerator.php index 9a9bc703..0b66c345 100644 --- a/src/BladeRouteGenerator.php +++ b/src/BladeRouteGenerator.php @@ -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); @@ -28,7 +28,7 @@ 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);