From 9eae3366fc0a88b234c151a460c38307804fb80c Mon Sep 17 00:00:00 2001 From: Italo Israel Baeza Cabrera Date: Tue, 28 Jan 2025 17:36:37 -0300 Subject: [PATCH] PHP 8.4 support --- .github/workflows/php.yml | 1 + src/Http/Middleware/Expires.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index d92395c..69a07b6 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -57,6 +57,7 @@ jobs: - 8.1 - 8.2 - 8.3 + - 8.4 laravel-constraint: - 10.* - 11.* diff --git a/src/Http/Middleware/Expires.php b/src/Http/Middleware/Expires.php index 1ec0ad7..1ce8dc5 100644 --- a/src/Http/Middleware/Expires.php +++ b/src/Http/Middleware/Expires.php @@ -41,7 +41,7 @@ public function __construct(protected DateFactory $date) /** * Handle the incoming request. */ - public function handle(Request $request, Closure $next, string $parameter = null, string $relative = null): mixed + public function handle(Request $request, Closure $next, ?string $parameter = null, ?string $relative = null): mixed { // If there is no parameter to find, fail. if (!$parameter ??= $this->getLastRouteParameter($request)) {