From 6a5f45d62a55b26c3a89e2a01664deef266396a5 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Fri, 17 Feb 2023 14:54:08 +1100 Subject: [PATCH] wip --- src/HasParameters.php | 2 -- tests/HasParametersTest.php | 1 + tests/Middleware/OptionalRequired.php | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HasParameters.php b/src/HasParameters.php index a9e9b06..8fba2a0 100644 --- a/src/HasParameters.php +++ b/src/HasParameters.php @@ -4,8 +4,6 @@ namespace TiMacDonald\Middleware; - - use Illuminate\Support\Arr; use Illuminate\Support\Collection; use ReflectionMethod; diff --git a/tests/HasParametersTest.php b/tests/HasParametersTest.php index 8f9a497..e3c4bac 100644 --- a/tests/HasParametersTest.php +++ b/tests/HasParametersTest.php @@ -18,6 +18,7 @@ use Tests\Middleware\Variadic; use TiMacDonald\Middleware\HasParameters; use TypeError; + use const PHP_MAJOR_VERSION; /** diff --git a/tests/Middleware/OptionalRequired.php b/tests/Middleware/OptionalRequired.php index d8f1b47..a88d5cd 100644 --- a/tests/Middleware/OptionalRequired.php +++ b/tests/Middleware/OptionalRequired.php @@ -7,6 +7,7 @@ use Closure; use Illuminate\Http\Request; use TiMacDonald\Middleware\HasParameters; + use const PHP_MAJOR_VERSION; // Cannot have optional parameter before required parameter in PHP >=8.0.