Remove wrong by reference variable init in Console\DocBloxErrorChecker

This commit is contained in:
Hypolite Petovan 2018-03-18 13:26:14 -04:00
parent bba12da167
commit 52e07a9e6d

View File

@ -123,7 +123,7 @@ HELP;
private function commandExists($command) private function commandExists($command)
{ {
$prefix = strpos(strtolower(PHP_OS),'win') > -1 ? 'where' : 'which'; $prefix = strpos(strtolower(PHP_OS),'win') > -1 ? 'where' : 'which';
exec("{$prefix} {$command}", $output = [], $returnVal = 0); exec("{$prefix} {$command}", $output, $returnVal);
return $returnVal === 0; return $returnVal === 0;
} }