Skip to content

Commit f12f96c

Browse files
authored
Merge pull request #11317 from vimeo/log_php_version_earlier
Log PHP version earlier
2 parents a9e6444 + 45f488c commit f12f96c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Psalm/Internal/Analyzer/ProjectAnalyzer.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
use function usort;
8989

9090
use const PHP_EOL;
91-
use const PHP_VERSION;
9291
use const PSALM_VERSION;
9392
use const STDERR;
9493

@@ -430,7 +429,7 @@ private function generatePHPVersionMessage(): string
430429
$message .= ' (unsupported extensions: ' . implode(', ', $unsupported_php_extensions) . ')';
431430
}
432431

433-
$message .= '.'.PHP_EOL.PHP_EOL."Running on PHP ".PHP_VERSION.'.'.PHP_EOL.PHP_EOL;
432+
$message .= '.'.PHP_EOL.PHP_EOL;
434433

435434
return $message;
436435
}

src/Psalm/Internal/Cli/Psalm.php

+3
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
use const LC_CTYPE;
9292
use const PHP_EOL;
9393
use const PHP_URL_SCHEME;
94+
use const PHP_VERSION;
9495
use const STDERR;
9596

9697
// phpcs:disable PSR1.Files.SideEffects
@@ -966,6 +967,8 @@ private static function restart(array $options, int $threads, int $scanThreads,
966967
// If Xdebug is enabled, restart without it
967968
$ini_handler->check();
968969

970+
$progress->write(PHP_EOL."Running on PHP ".PHP_VERSION.'.'.PHP_EOL);
971+
969972
$hasJit = false;
970973
if (function_exists('opcache_get_status')) {
971974
if (true === (opcache_get_status()['jit']['on'] ?? false)) {

0 commit comments

Comments
 (0)