From 32b2e493045b5b043ef8cf3a542c6cb538bbcf88 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 29 Nov 2023 12:44:54 +0100 Subject: [PATCH] Always force JIT --- src/Psalm/Internal/Cli/Psalm.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Psalm/Internal/Cli/Psalm.php b/src/Psalm/Internal/Cli/Psalm.php index d25af20bdd9..53ae2200384 100644 --- a/src/Psalm/Internal/Cli/Psalm.php +++ b/src/Psalm/Internal/Cli/Psalm.php @@ -4,6 +4,7 @@ namespace Psalm\Internal\Cli; +use AssertionError; use Composer\Autoload\ClassLoader; use Psalm\Config; use Psalm\Config\Creator; @@ -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!'); } }