DynamicClassConstFetchRector

constant(Example::class . '::' . $constName) to dynamic class const fetch Example::{$constName}

-constant(Example::class . '::' . $constName);
+Example::{$constName};

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Php83\Rector\FuncCall\DynamicClassConstFetchRector;

return RectorConfig::configure()
    ->withRules([
        DynamicClassConstFetchRector::class,
    ]);
SETS:  PHP 8.3