Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use STDERR for Shepherd output #9169

Merged
merged 1 commit into from Jan 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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