Skip to content

Commit

Permalink
fix: rector config (tempestphp#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt authored Oct 13, 2024
1 parent 43b4db7 commit 83c103d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
ReadOnlyClassRector::class,
ReadOnlyPropertyRector::class,
RemoveNullPropertyInitializationRector::class,
RemoveUnreachableStatementRector::class,
AddSensitiveParameterAttributeRector::class,
RemoveUnusedPublicMethodParameterRector::class,
RestoreDefaultNullToNullableTypePropertyRector::class,
Expand Down
6 changes: 3 additions & 3 deletions src/Tempest/Console/src/ConsoleInputBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
use Tempest\Console\Input\ConsoleArgumentBag;
use Tempest\Console\Input\ConsoleInputArgument;

final class ConsoleInputBuilder
final readonly class ConsoleInputBuilder
{
public function __construct(
protected ConsoleCommand $command,
protected ConsoleArgumentBag $argumentBag,
private ConsoleCommand $command,
private ConsoleArgumentBag $argumentBag,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Tempest/Database/src/Builder/ModelDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
public function __construct(
/** @var class-string<\Tempest\Database\DatabaseModel> $modelClass */
protected string $modelClass,
private string $modelClass,
) {
}

Expand Down
4 changes: 2 additions & 2 deletions src/Tempest/Validation/src/Rules/In.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{
public function __construct(
/** @var array<string|int> */
protected array $values,
protected bool $not = false,
private array $values,
private bool $not = false,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Tempest/Validation/src/Rules/NotIn.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
public function __construct(
/** @var array<string|int> */
protected array $values
private array $values
) {

}
Expand Down

0 comments on commit 83c103d

Please sign in to comment.