Rector: deadcode.

This commit is contained in:
Jens True 2024-02-21 13:29:09 +00:00
parent df5b48b2c4
commit 703372fda9
2 changed files with 3 additions and 3 deletions

@ -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);

@ -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