Skip to content

Commit

Permalink
Revert "realpath for config file paths"
Browse files Browse the repository at this point in the history
This reverts commit f529257.
  • Loading branch information
ondrejmirtes committed Mar 14, 2020
1 parent 762277e commit a90efd5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Command/CommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit a90efd5

Please sign in to comment.