Skip to content

Commit 97e5a07

Browse files
committed
Switch back to function JIT
1 parent 7f92c33 commit 97e5a07

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"phpunit/phpunit": "^9.6",
5959
"psalm/plugin-mockery": "^1.1",
6060
"psalm/plugin-phpunit": "^0.18",
61-
"rector/rector": "^0.18.5",
6261
"slevomat/coding-standard": "^8.4",
6362
"squizlabs/php_codesniffer": "^3.6",
6463
"symfony/process": "^4.4 || ^5.0 || ^6.0"

src/Psalm/Internal/Fork/PsalmRestarter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class PsalmRestarter extends XdebugHandler
2828
{
2929
private const REQUIRED_OPCACHE_SETTINGS = [
3030
'enable_cli' => 1,
31-
'jit' => 1254,
31+
'jit' => 1205,
3232
'validate_timestamps' => 0,
3333
'file_update_protection' => 0,
3434
'jit_buffer_size' => 512 * 1024 * 1024,
@@ -88,7 +88,7 @@ protected function requiresRestart($default): bool
8888
if ($ini_name === 'jit_buffer_size') {
8989
$value = self::toBytes($value);
9090
} elseif ($ini_name === 'enable_cli') {
91-
$value = in_array($value, ['1', 'true', true, 1]);
91+
$value = in_array($value, ['1', 'true', true, 1]) ? 1 : 0;
9292
} elseif (is_int($required_value)) {
9393
$required_value = (int) $required_value;
9494
}

0 commit comments

Comments
 (0)