diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 0d939ffa..8b41d7c8 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -26,7 +26,7 @@ $license->save(); -$config = PhpCsFixer\Config\Factory::fromRuleSet(new PhpCsFixer\Config\RuleSet\Php73($license->header())); +$config = PhpCsFixer\Config\Factory::fromRuleSet(new PhpCsFixer\Config\RuleSet\Php74($license->header())); $config->getFinder() ->exclude([ diff --git a/src/RuleSet/AbstractRuleSet.php b/src/RuleSet/AbstractRuleSet.php index 89783476..91f918c0 100644 --- a/src/RuleSet/AbstractRuleSet.php +++ b/src/RuleSet/AbstractRuleSet.php @@ -119,14 +119,12 @@ abstract class AbstractRuleSet implements RuleSet 'var', 'version', ]; - protected string $name = ''; /** * @var array */ protected array $rules = []; - protected int $targetPhpVersion = 0; final public function __construct(?string $header = null) diff --git a/test/Double/Config/RuleSet/DummyRuleSet.php b/test/Double/Config/RuleSet/DummyRuleSet.php index e13c048f..a43f3bd2 100644 --- a/test/Double/Config/RuleSet/DummyRuleSet.php +++ b/test/Double/Config/RuleSet/DummyRuleSet.php @@ -23,7 +23,6 @@ final class DummyRuleSet implements Config\RuleSet * @var array */ private array $rules; - private int $phpVersion; /** diff --git a/test/Unit/RuleSet/AbstractRuleSetTestCase.php b/test/Unit/RuleSet/AbstractRuleSetTestCase.php index 5fc5faf8..7f543d62 100644 --- a/test/Unit/RuleSet/AbstractRuleSetTestCase.php +++ b/test/Unit/RuleSet/AbstractRuleSetTestCase.php @@ -123,11 +123,8 @@ abstract class AbstractRuleSetTestCase extends Framework\TestCase 'var', 'version', ]; - protected string $name; - protected array $rules; - protected int $targetPhpVersion; final public function testDefaults(): void