Skip to content

Commit

Permalink
Merge pull request #32 from sarcastron/bugfix/undefined-index-cache
Browse files Browse the repository at this point in the history
Check for non-empty value instead of intrinsic truthy value.
  • Loading branch information
overtrue authored Feb 24, 2018
2 parents 47066fe + 653eb54 commit b17148e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/LintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$linter = new Linter($options['path'], $options['exclude'], $options['extensions']);
$linter->setProcessLimit($options['jobs']);

if ($options['cache']) {
if (!empty($options['cache'])) {
Cache::setFilename($options['cache']);
}

Expand Down

0 comments on commit b17148e

Please sign in to comment.