From 703372fda985d5af67b13f750df0e01f0cbdfbd0 Mon Sep 17 00:00:00 2001 From: Jens True Date: Wed, 21 Feb 2024 13:29:09 +0000 Subject: [PATCH] Rector: deadcode. --- rector.php | 2 +- tests/Numerics/RangeTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rector.php b/rector.php index 350fa51..388c52c 100644 --- a/rector.php +++ b/rector.php @@ -14,4 +14,4 @@ return RectorConfig::configure() ]) // uncomment to reach your current PHP version ->withPhpSets() - ->withPreparedSets(typeDeclarations : true); + ->withPreparedSets(deadCode: true, codeQuality: true, typeDeclarations : true); diff --git a/tests/Numerics/RangeTest.php b/tests/Numerics/RangeTest.php index 181075a..2f4cd32 100644 --- a/tests/Numerics/RangeTest.php +++ b/tests/Numerics/RangeTest.php @@ -13,13 +13,13 @@ class RangeTest extends TestCase public function testConstructInvalidParam(): void { $this->expectException(Exception::class); - $range = new Range(10, 5); + new Range(10, 5); } public function testFactoryInclusiveInvalidParam(): void { $this->expectException(Exception::class); - $range = Range::inclusive(10, 5); + Range::inclusive(10, 5); } public function testNormalUse(): void