Skip to content

Commit

Permalink
Fix: Rename field
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Sep 17, 2023
1 parent 16b9c50 commit 6f3b69c
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 36 deletions.
6 changes: 3 additions & 3 deletions src/RuleSet/Php53.php
Expand Up @@ -818,7 +818,7 @@ final class Php53 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -829,7 +829,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -860,6 +860,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php54.php
Expand Up @@ -820,7 +820,7 @@ final class Php54 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -831,7 +831,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -862,6 +862,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php55.php
Expand Up @@ -829,7 +829,7 @@ final class Php55 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -840,7 +840,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -871,6 +871,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php56.php
Expand Up @@ -829,7 +829,7 @@ final class Php56 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -840,7 +840,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -871,6 +871,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php70.php
Expand Up @@ -829,7 +829,7 @@ final class Php70 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -841,7 +841,7 @@ public function __construct(?string $header = null)

$this->name = Name::fromPhpVersion($phpVersion);

$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -872,6 +872,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php71.php
Expand Up @@ -832,7 +832,7 @@ final class Php71 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -843,7 +843,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -874,6 +874,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php72.php
Expand Up @@ -832,7 +832,7 @@ final class Php72 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -843,7 +843,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -874,6 +874,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php73.php
Expand Up @@ -833,7 +833,7 @@ final class Php73 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -844,7 +844,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -875,6 +875,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php74.php
Expand Up @@ -836,7 +836,7 @@ final class Php74 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -847,7 +847,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -878,6 +878,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php80.php
Expand Up @@ -845,7 +845,7 @@ final class Php80 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -856,7 +856,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -887,6 +887,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php81.php
Expand Up @@ -847,7 +847,7 @@ final class Php81 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -858,7 +858,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -889,6 +889,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}
6 changes: 3 additions & 3 deletions src/RuleSet/Php82.php
Expand Up @@ -847,7 +847,7 @@ final class Php82 implements ExplicitRuleSet, RuleSet
],
];
private readonly Name $name;
private readonly PhpVersion $targetPhpVersion;
private readonly PhpVersion $phpVersion;

public function __construct(?string $header = null)
{
Expand All @@ -858,7 +858,7 @@ public function __construct(?string $header = null)
);

$this->name = Name::fromPhpVersion($phpVersion);
$this->targetPhpVersion = $phpVersion;
$this->phpVersion = $phpVersion;

if (null === $header) {
return;
Expand Down Expand Up @@ -889,6 +889,6 @@ public function rules(): Rules

public function phpVersion(): PhpVersion
{
return $this->targetPhpVersion;
return $this->phpVersion;
}
}

0 comments on commit 6f3b69c

Please sign in to comment.