Skip to content

Commit

Permalink
Add PHP8.4 support (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
datlechin authored Nov 26, 2024
1 parent 2915500 commit 1d90473
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This package for the [Laravel framework](https://laravel.com/) will make it easy

Run this at the command line:
```php
$ composer require tabuna/breadcrumbs
composer require tabuna/breadcrumbs
```

This will update `composer.json` and install the package into the `vendor/` directory.
Expand Down
2 changes: 1 addition & 1 deletion src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function generate(string $route, $parameters = null): Collection
*
* @return bool
*/
public function has(string $name = null): bool
public function has(?string $name = null): bool
{
$name = $name ?? Route::currentRouteName();

Expand Down
2 changes: 1 addition & 1 deletion src/Trail.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function parent(string $name, ...$parameters): self
*
* @return Trail
*/
public function push(string $title, string $url = null): self
public function push(string $title, ?string $url = null): self
{
$this->breadcrumbs->push(new Crumb($title, $url));

Expand Down

0 comments on commit 1d90473

Please sign in to comment.