<?php declare(strict_types=1); final class DemoFile { public function run() { return 5; // we never get here return 10; } }

<?php declare(strict_types=1); use Rector\Core\Configuration\Option; use Rector\Set\ValueObject\SetList; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; return static function (ContainerConfigurator $containerConfigurator): void { $parameters = $containerConfigurator->parameters(); $parameters->set(Option::SETS, [SetList::DEAD_CODE]); };