Skip to content

Commit

Permalink
Enhancement: Use constructor property promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 28, 2022
1 parent d3812ff commit 32b0cb2
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions test/Double/Config/RuleSet/DummyRuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,14 @@

final class DummyRuleSet implements Config\RuleSet
{
private string $name;

/**
* @var array<string, array<string, mixed>|bool>
*/
private array $rules;
private int $phpVersion;

/**
* @param array<string, array<string, mixed>|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
Expand Down

0 comments on commit 32b0cb2

Please sign in to comment.