From 68842a50c52c3d043ae5a015266b14257e9ea7cd Mon Sep 17 00:00:00 2001 From: Alies Lapatsin Date: Mon, 23 Jan 2023 21:14:18 +0100 Subject: [PATCH] Use STDERR for Shepherd output, fixes #9168 --- src/Psalm/Plugin/Shepherd.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Psalm/Plugin/Shepherd.php b/src/Psalm/Plugin/Shepherd.php index 2028a68aae3..1358039abb7 100644 --- a/src/Psalm/Plugin/Shepherd.php +++ b/src/Psalm/Plugin/Shepherd.php @@ -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 { @@ -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; }