Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 17, 2024
1 parent 6d0abe7 commit 985d5ea
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions rules/Php81/Rector/Class_/SpatieEnumClassToEnumRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
*/
final class SpatieEnumClassToEnumRector extends AbstractRector implements MinPhpVersionInterface, ConfigurableRectorInterface
{
private bool $toUpperSnakeCase = false;

/**
* @var string
*/
public const TO_UPPER_SNAKE_CASE = 'toUpperSnakeCase';

private bool $toUpperSnakeCase = false;

public function __construct(
private readonly EnumFactory $enumFactory
) {
Expand Down Expand Up @@ -66,10 +66,11 @@ enum StatusEnum : string
case PUBLISHED = 'published';
case ARCHIVED = 'archived';
}
CODE_SAMPLE,
[
SpatieEnumClassToEnumRector::TO_UPPER_SNAKE_CASE => false,
]
CODE_SAMPLE
,
[
SpatieEnumClassToEnumRector::TO_UPPER_SNAKE_CASE => false,
]
),
]);
}
Expand Down

0 comments on commit 985d5ea

Please sign in to comment.