Skip to content

Commit

Permalink
pass memory limit to phpstan
Browse files Browse the repository at this point in the history
fixes #145
  • Loading branch information
mglaman committed May 11, 2020
1 parent 3d2819c commit bc666c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Command/CheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if ($input->getOption('no-progress')) {
$command[] = '--no-progress';
}
if ($input->getOption('memory-limit')) {
$command[] = '--memory-limit=' . $input->getOption('memory-limit');
}

if ($output->getVerbosity() === OutputInterface::VERBOSITY_VERBOSE) {
$command[] = '-v';
Expand Down

0 comments on commit bc666c3

Please sign in to comment.