Skip to content

Commit

Permalink
Remove support php 7.3 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored Oct 20, 2021
1 parent 4109765 commit bca3257
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.0, 7.4, 7.3]
php: [8.0, 7.4]
laravel: [8.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
}
],
"require": {
"php": "^7.4|^8.0",
"ext-json": "*",
"laravel/framework": "^8.16",
"laravel/serializable-closure": "^1.0"
Expand Down
6 changes: 1 addition & 5 deletions src/BreadcrumbsMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ public function handle(Request $request, Closure $next)
/** @var SerializableClosure $callback */
$callback = unserialize($serialize);

if (is_a($callback, SerializableClosure::class)) {
$callback = $callback->getClosure();
}

$this->breadcrumbs->for($route->getName(), $callback);
$this->breadcrumbs->for($route->getName(), $callback->getClosure());
});

optional($request->route())->forgetParameter(self::class);
Expand Down

0 comments on commit bca3257

Please sign in to comment.