Skip to content

Commit

Permalink
Always force JIT
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Nov 29, 2023
1 parent 9060a46 commit 32b2e49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Psalm\Internal\Cli;

use AssertionError;
use Composer\Autoload\ClassLoader;
use Psalm\Config;
use Psalm\Config\Creator;
Expand Down Expand Up @@ -903,9 +904,7 @@ private static function restart(array $options, int $threads, Progress $progress
. 'Install the opcache extension to make use of JIT for a 20%+ performance boost!'
. PHP_EOL . PHP_EOL);
} elseif (!opcache_get_status(false)['jit']['on']) {
$progress->write(PHP_EOL
. 'The opcache extension could not be enabled, please report this issue to the Psalm repo!'
. PHP_EOL . PHP_EOL);
throw new AssertionError('The opcache extension could not be enabled!');
}
}

Expand Down

0 comments on commit 32b2e49

Please sign in to comment.