Skip to content

Commit 3e7762b

Browse files
committedNov 24, 2024·
Fix
1 parent 3afbafc commit 3e7762b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/Psalm/Internal/Cli/Psalm.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ private static function restart(array $options, int $threads, Progress $progress
916916
'blackfire',
917917
]);
918918

919-
$skipJit = defined('PHP_WINDOWS_VERSION_MAJOR') && PHP_VERSION_ID < 80401;
919+
$skipJit = defined('PHP_WINDOWS_VERSION_MAJOR') && PHP_VERSION_ID < 80400;
920920
if ($skipJit) {
921921
$ini_handler->disableExtensions(['opcache', 'Zend OPcache']);
922922
}

‎src/Psalm/Internal/Fork/PsalmRestarter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ protected function restart($command): void
164164
// executed in the parent process (before restart)
165165
// if it wasn't loaded then we apparently don't have opcache installed and there's no point trying
166166
// to tweak it
167-
if ($opcache_loaded && !(defined('PHP_WINDOWS_VERSION_MAJOR') && PHP_VERSION_ID < 80401)) {
167+
if ($opcache_loaded && !(defined('PHP_WINDOWS_VERSION_MAJOR') && PHP_VERSION_ID < 80400)) {
168168
$additional_options = [];
169169
foreach (self::REQUIRED_OPCACHE_SETTINGS as $key => $value) {
170170
$additional_options []= "-dopcache.{$key}={$value}";

0 commit comments

Comments
 (0)
Please sign in to comment.