remove var-dumper from rector.phar

This commit is contained in:
TomasVotruba 2020-01-11 00:42:43 +01:00
parent acdeb51f0d
commit b827e2cfe9

View File

@ -83,6 +83,7 @@ final class CompileCommand extends Command
$json = $this->removeDevKeys($json);
$json = $this->replacePHPStanWithPHPStanSrc($json);
$json = $this->addReplace($json);
$encodedJson = Json::encode($json, Json::PRETTY);
@ -126,4 +127,16 @@ final class CompileCommand extends Command
return $json;
}
/**
* This prevent installing packages, that are not needed here.
*/
private function addReplace(array $json): array
{
$json['replace'] = [
'symfony/var-dumper' => '*',
];
return $json;
}
}