Skip to content

Commit 83c103d

Browse files
authored
fix: rector config (#581)
1 parent 43b4db7 commit 83c103d

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
ReadOnlyClassRector::class,
5252
ReadOnlyPropertyRector::class,
5353
RemoveNullPropertyInitializationRector::class,
54-
RemoveUnreachableStatementRector::class,
5554
AddSensitiveParameterAttributeRector::class,
5655
RemoveUnusedPublicMethodParameterRector::class,
5756
RestoreDefaultNullToNullableTypePropertyRector::class,

src/Tempest/Console/src/ConsoleInputBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
use Tempest\Console\Input\ConsoleArgumentBag;
99
use Tempest\Console\Input\ConsoleInputArgument;
1010

11-
final class ConsoleInputBuilder
11+
final readonly class ConsoleInputBuilder
1212
{
1313
public function __construct(
14-
protected ConsoleCommand $command,
15-
protected ConsoleArgumentBag $argumentBag,
14+
private ConsoleCommand $command,
15+
private ConsoleArgumentBag $argumentBag,
1616
) {
1717
}
1818

src/Tempest/Database/src/Builder/ModelDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{
1717
public function __construct(
1818
/** @var class-string<\Tempest\Database\DatabaseModel> $modelClass */
19-
protected string $modelClass,
19+
private string $modelClass,
2020
) {
2121
}
2222

src/Tempest/Validation/src/Rules/In.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
{
1313
public function __construct(
1414
/** @var array<string|int> */
15-
protected array $values,
16-
protected bool $not = false,
15+
private array $values,
16+
private bool $not = false,
1717
) {
1818
}
1919

src/Tempest/Validation/src/Rules/NotIn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{
1313
public function __construct(
1414
/** @var array<string|int> */
15-
protected array $values
15+
private array $values
1616
) {
1717

1818
}

0 commit comments

Comments
 (0)