Skip to content

Commit e25dec6

Browse files
committed
Explicitly disable JIT by default
1 parent 8885eeb commit e25dec6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Psalm/Internal/Fork/PsalmRestarter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ final class PsalmRestarter extends XdebugHandler
3939
'log_verbosity_level' => 0,
4040
'save_comments' => 1,
4141
'restrict_api' => '',
42+
'jit' => 'off',
4243
];
4344

4445
private const JIT_OPCACHE_SETTINGS = [
@@ -200,7 +201,7 @@ protected function restart($command): void
200201
private function getEffectiveOpcacheSettings(): array
201202
{
202203
if ($this->enableJit) {
203-
return self::REQUIRED_OPCACHE_SETTINGS + self::JIT_OPCACHE_SETTINGS;
204+
return array_merge(self::REQUIRED_OPCACHE_SETTINGS, self::JIT_OPCACHE_SETTINGS);
204205
}
205206

206207
return self::REQUIRED_OPCACHE_SETTINGS;

0 commit comments

Comments
 (0)