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