diff --git a/rector.php b/rector.php index 8b3a1f3..a9a418f 100644 --- a/rector.php +++ b/rector.php @@ -4,6 +4,7 @@ use Rector\Config\RectorConfig; use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector; +use Rector\Php81\Rector\MethodCall\MyCLabsMethodCallToEnumConstRector; use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; @@ -24,6 +25,7 @@ '*.json', '*/Fixture/*', MyCLabsClassToEnumRector::class, + MyCLabsMethodCallToEnumConstRector::class, ]); $rectorConfig->importNames(); diff --git a/src/Resources/SimulationRunEvents/Operations/ListSimulationRunEvents.php b/src/Resources/SimulationRunEvents/Operations/ListSimulationRunEvents.php index 8edaa66..e9d4261 100644 --- a/src/Resources/SimulationRunEvents/Operations/ListSimulationRunEvents.php +++ b/src/Resources/SimulationRunEvents/Operations/ListSimulationRunEvents.php @@ -24,7 +24,7 @@ public function __construct( public function getParameters(): array { - $enumStringify = fn ($enum) => $enum->getValue(); + fn ($enum) => $enum->getValue(); return array_merge( $this->pager?->getParameters() ?? [],