Skip to content
Permalink
Browse files

Send more info from shepherd

  • Loading branch information
muglug committed Dec 1, 2019
1 parent a82ed91 commit e47f5e774bae18865551623e2db07def638564b0
Showing with 8 additions and 4 deletions.
  1. +8 −4 src/Psalm/Plugin/Shepherd.php
@@ -47,10 +47,10 @@ public static function afterAnalysis(
return;
}
if ($source_control_info instanceof \Psalm\SourceControl\Git\GitInfo && $build_info) {
if ($build_info) {
$data = [
'build' => $build_info,
'git' => $source_control_info->toArray(),
'git' => $source_control_info ? $source_control_info->toArray() : [],
'issues' => array_filter(
$issues,
/**
@@ -98,8 +98,12 @@ function (array $i) : bool {
fwrite(STDERR, self::getCurlErrorMessage($ch) . PHP_EOL);
} else {
echo $return . PHP_EOL;
echo 'Git args: ' . var_export($source_control_info->toArray(), true) . PHP_EOL;
echo 'CI args: ' . var_export($build_info, true) . PHP_EOL;
echo 'Git args: '
. var_export($source_control_info ? $source_control_info->toArray() : [], true)
. PHP_EOL;
echo 'CI args: '
. var_export($build_info, true)
. PHP_EOL;
}
}

0 comments on commit e47f5e7

Please sign in to comment.
You can’t perform that action at this time.