mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
Send more info from shepherd
This commit is contained in:
parent
a82ed91a00
commit
e47f5e774b
@ -47,10 +47,10 @@ class Shepherd implements \Psalm\Plugin\Hook\AfterAnalysisInterface
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($source_control_info instanceof \Psalm\SourceControl\Git\GitInfo && $build_info) {
|
if ($build_info) {
|
||||||
$data = [
|
$data = [
|
||||||
'build' => $build_info,
|
'build' => $build_info,
|
||||||
'git' => $source_control_info->toArray(),
|
'git' => $source_control_info ? $source_control_info->toArray() : [],
|
||||||
'issues' => array_filter(
|
'issues' => array_filter(
|
||||||
$issues,
|
$issues,
|
||||||
/**
|
/**
|
||||||
@ -98,8 +98,12 @@ class Shepherd implements \Psalm\Plugin\Hook\AfterAnalysisInterface
|
|||||||
fwrite(STDERR, self::getCurlErrorMessage($ch) . PHP_EOL);
|
fwrite(STDERR, self::getCurlErrorMessage($ch) . PHP_EOL);
|
||||||
} else {
|
} else {
|
||||||
echo $return . PHP_EOL;
|
echo $return . PHP_EOL;
|
||||||
echo 'Git args: ' . var_export($source_control_info->toArray(), true) . PHP_EOL;
|
echo 'Git args: '
|
||||||
echo 'CI args: ' . var_export($build_info, true) . PHP_EOL;
|
. var_export($source_control_info ? $source_control_info->toArray() : [], true)
|
||||||
|
. PHP_EOL;
|
||||||
|
echo 'CI args: '
|
||||||
|
. var_export($build_info, true)
|
||||||
|
. PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user