From 32b0cb2adcc3a98bc2e92c92984db3531e11cbaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 28 Nov 2022 15:22:38 +0100 Subject: [PATCH] Enhancement: Use constructor property promotion --- test/Double/Config/RuleSet/DummyRuleSet.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/test/Double/Config/RuleSet/DummyRuleSet.php b/test/Double/Config/RuleSet/DummyRuleSet.php index aee8eb9a..fde2eaff 100644 --- a/test/Double/Config/RuleSet/DummyRuleSet.php +++ b/test/Double/Config/RuleSet/DummyRuleSet.php @@ -17,25 +17,14 @@ final class DummyRuleSet implements Config\RuleSet { - private string $name; - - /** - * @var array|bool> - */ - private array $rules; - private int $phpVersion; - /** * @param array|bool> $rules */ public function __construct( - string $name, - array $rules, - int $phpVersion, + private string $name, + private array $rules, + private int $phpVersion, ) { - $this->name = $name; - $this->rules = $rules; - $this->phpVersion = $phpVersion; } public function name(): string