1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Enable opcache if it is installed

This commit is contained in:
Daniil Gentili 2023-05-11 16:51:37 +02:00
parent 841cccd693
commit ffd363d7b8
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -923,11 +923,7 @@ final class Psalm
// If Xdebug is enabled, restart without it
$ini_handler->check();
if (!function_exists('opcache_get_status')
|| !($opcache_status = opcache_get_status(false))
|| !isset($opcache_status['opcache_enabled'])
|| !$opcache_status['opcache_enabled']
) {
if (!function_exists('opcache_get_status')) {
$progress->write(PHP_EOL
. 'Install the opcache extension to make use of JIT on PHP 8.0+ for a 20%+ performance boost!'
. PHP_EOL . PHP_EOL);