Apply suggestions from code review
Co-Authored-By: Andreas Möller <am@localheinz.com>pull/8718/head
parent
6e88683e35
commit
22a52f5813
|
@ -64,7 +64,7 @@ class VersionGuesser
|
|||
public function guessVersion(array $packageConfig, $path)
|
||||
{
|
||||
if (!function_exists('proc_open')) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
$versionData = $this->guessGitVersion($packageConfig, $path);
|
||||
|
@ -86,6 +86,8 @@ class VersionGuesser
|
|||
if (null !== $versionData && null !== $versionData['version']) {
|
||||
return $this->postprocess($versionData);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private function postprocess(array $versionData)
|
||||
|
|
Loading…
Reference in New Issue