You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #1654 Split output to stderr and stdout (SpacePossum)
This PR was merged into the 1.12 branch.
Discussion
----------
Split output to stderr and stdout
For more correct testing I need symfony/symfony#17255 to be resolved.
issue: #1579 (and others)
Commits
-------
880f58d Split output to stderr and stdout.
if (null !== $stdErr && extension_loaded('xdebug')) {
292
296
$stdErr->writeln(sprintf($stdErr->isDecorated() ? '<bg=yellow;fg=black;>%s</>' : '%s', 'You are running php-cs-fixer with xdebug enabled. This has a major impact on runtime performance.'));
293
297
}
294
298
@@ -346,8 +350,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
346
350
thrownewInvalidConfigurationException(sprintf('The config file "%s" does not return a "Symfony\CS\ConfigInterface" instance. Got: "%s".', $configFile, is_object($config) ? get_class($config) : gettype($config)));
347
351
}
348
352
349
-
if ('txt' === $input->getOption('format')) {
350
-
$output->writeln(sprintf('Loaded config from "%s"', $configFile));
353
+
if (null !== $stdErr && $configFile) {
354
+
$stdErr->writeln(sprintf('Loaded config from "%s".', $configFile));
351
355
}
352
356
} else {
353
357
$config = $this->defaultConfig;
@@ -383,11 +387,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
0 commit comments