Refactor MyCLabs enum fetch to Enum const
-$name = SomeEnum::VALUE()->getKey();
+$name = SomeEnum::VALUE;
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php81\Rector\MethodCall\MyCLabsMethodCallToEnumConstRector;
return RectorConfig::configure()
->withRules([
MyCLabsMethodCallToEnumConstRector::class,
]);