Skip to content

Commit

Permalink
Merge pull request #11317 from vimeo/log_php_version_earlier
Browse files Browse the repository at this point in the history
Log PHP version earlier
  • Loading branch information
danog authored Feb 19, 2025
2 parents a9e6444 + 45f488c commit f12f96c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/Psalm/Internal/Analyzer/ProjectAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
use function usort;

use const PHP_EOL;
use const PHP_VERSION;
use const PSALM_VERSION;
use const STDERR;

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

$message .= '.'.PHP_EOL.PHP_EOL."Running on PHP ".PHP_VERSION.'.'.PHP_EOL.PHP_EOL;
$message .= '.'.PHP_EOL.PHP_EOL;

return $message;
}
Expand Down
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
use const LC_CTYPE;
use const PHP_EOL;
use const PHP_URL_SCHEME;
use const PHP_VERSION;
use const STDERR;

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

$progress->write(PHP_EOL."Running on PHP ".PHP_VERSION.'.'.PHP_EOL);

$hasJit = false;
if (function_exists('opcache_get_status')) {
if (true === (opcache_get_status()['jit']['on'] ?? false)) {
Expand Down

0 comments on commit f12f96c

Please sign in to comment.