diff --git a/infection.json b/infection.json5 similarity index 53% rename from infection.json rename to infection.json5 index c304efc..f6715f1 100644 --- a/infection.json +++ b/infection.json5 @@ -1,15 +1,10 @@ { + "$schema": "vendor/infection/infection/resources/schema.json", "source": { "directories": [ "src" ] }, - "logs": { - "text": "infection.log", - "stryker": { - "badge": "main" - } - }, "mutators": { "@default": true } diff --git a/src/HasParameters.php b/src/HasParameters.php index b55cf04..fd30bfa 100644 --- a/src/HasParameters.php +++ b/src/HasParameters.php @@ -1,7 +1,5 @@ reject(static function (ReflectionParameter $parameter): bool { return $parameter->isDefaultValueAvailable() || $parameter->isVariadic(); - }) - ->first(); + })->first(); if ($missingRequiredParameter === null) { return; diff --git a/tests/HasParametersTest.php b/tests/HasParametersTest.php index 07b7e03..be575c7 100644 --- a/tests/HasParametersTest.php +++ b/tests/HasParametersTest.php @@ -4,8 +4,6 @@ namespace Tests; -use const PHP_MAJOR_VERSION; - use Closure; use ErrorException; use Illuminate\Http\Request; diff --git a/tests/Middleware/Aliased.php b/tests/Middleware/Aliased.php index f8ebed3..1abf2a9 100644 --- a/tests/Middleware/Aliased.php +++ b/tests/Middleware/Aliased.php @@ -1,7 +1,5 @@