mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 07:22:43 +02:00
remove var-dumper from rector.phar
This commit is contained in:
parent
acdeb51f0d
commit
b827e2cfe9
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user