Skip to content

Commit

Permalink
Add PHP8.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
datlechin committed Nov 24, 2024
1 parent 8e00229 commit 962005b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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|string|null $group = null, ?string $nonce = null): string
{
$ziggy = new Ziggy($group);

Expand Down
2 changes: 1 addition & 1 deletion src/Ziggy.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Ziggy implements JsonSerializable
protected Collection $routes;

public function __construct(
protected $group = null,
protected array|string|null $group = null,
protected ?string $url = null,
) {
$this->url = rtrim($url ?? url('/'), '/');
Expand Down

0 comments on commit 962005b

Please sign in to comment.