diff --git a/src/Command/CommandHelper.php b/src/Command/CommandHelper.php index 8e7e8fbc53..e63a694829 100644 --- a/src/Command/CommandHelper.php +++ b/src/Command/CommandHelper.php @@ -20,7 +20,6 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\ConsoleOutputInterface; use Symfony\Component\Console\Output\OutputInterface; -use function realpath; class CommandHelper { @@ -435,11 +434,6 @@ private static function getConfigFiles( } else { $data = $neonAdapter->load($configFile); } - - $configFile = realpath($configFile); - if ($configFile === false) { - throw new \PHPStan\ShouldNotHappenException(); - } $allConfigFiles = [$configFile]; if (isset($data['includes'])) { Validators::assert($data['includes'], 'list', sprintf("section 'includes' in file '%s'", $configFile));