diff --git a/src/Process/Lint.php b/src/Process/Lint.php index 6e10618d..6b86e965 100644 --- a/src/Process/Lint.php +++ b/src/Process/Lint.php @@ -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;