Skip to content

Commit

Permalink
Use STDERR for Shepherd output, fixes #9168
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Jan 23, 2023
1 parent f0df119 commit 68842a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Psalm/Plugin/Shepherd.php
Expand Up @@ -37,7 +37,6 @@
use const PHP_URL_HOST;
use const PHP_URL_SCHEME;
use const STDERR;
use const STDOUT;

final class Shepherd implements AfterAnalysisInterface
{
Expand Down Expand Up @@ -120,7 +119,7 @@ public static function afterAnalysis(
if ($response_status_code >= 200 && $response_status_code < 300) {
$shepherd_host = parse_url($codebase->config->shepherd_endpoint, PHP_URL_HOST);

fwrite(STDOUT, "🐑 results sent to $shepherd_host 🐑" . PHP_EOL);
fwrite(STDERR, "🐑 results sent to $shepherd_host 🐑" . PHP_EOL);
return;
}

Expand Down

0 comments on commit 68842a5

Please sign in to comment.