Skip to content

Commit

Permalink
Empty check on hhvm.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Aug 19, 2016
1 parent b8e09c8 commit 67fbfea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Process/Lint.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public function hasSyntaxError()
{
$output = trim($this->getOutput());

if (defined('HHVM_VERSION')) {
return !empty($output);
if (defined('HHVM_VERSION') && empty($output)) {
return false;
}

return strpos($output, 'No syntax errors detected') === false;
Expand Down

0 comments on commit 67fbfea

Please sign in to comment.