Skip to content

Commit

Permalink
remove var-dumper from rector.phar
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 10, 2020
1 parent acdeb51 commit a4459ce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions compiler/src/Console/CompileCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ private function fixComposerJson(string $composerJsonFile): void
$json = $this->removeDevKeys($json);

$json = $this->replacePHPStanWithPHPStanSrc($json);
$json = $this->addReplace($json);

$encodedJson = Json::encode($json, Json::PRETTY);

Expand Down Expand Up @@ -126,4 +127,14 @@ private function removeDevKeys(array $json): array

return $json;
}

/**
* This prevent installing packages, that are not needed here.
*/
private function addReplace(array $json): array
{
$json['replace'] = [
'symfony/var-dumper' => '*'
];
}
}

0 comments on commit a4459ce

Please sign in to comment.