1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00

Switch back to function JIT

This commit is contained in:
Daniil Gentili 2023-10-21 13:47:26 +02:00
parent 7f92c333ef
commit 97e5a077e7
2 changed files with 2 additions and 3 deletions

View File

@ -58,7 +58,6 @@
"phpunit/phpunit": "^9.6",
"psalm/plugin-mockery": "^1.1",
"psalm/plugin-phpunit": "^0.18",
"rector/rector": "^0.18.5",
"slevomat/coding-standard": "^8.4",
"squizlabs/php_codesniffer": "^3.6",
"symfony/process": "^4.4 || ^5.0 || ^6.0"

View File

@ -28,7 +28,7 @@ final class PsalmRestarter extends XdebugHandler
{
private const REQUIRED_OPCACHE_SETTINGS = [
'enable_cli' => 1,
'jit' => 1254,
'jit' => 1205,
'validate_timestamps' => 0,
'file_update_protection' => 0,
'jit_buffer_size' => 512 * 1024 * 1024,
@ -88,7 +88,7 @@ final class PsalmRestarter extends XdebugHandler
if ($ini_name === 'jit_buffer_size') {
$value = self::toBytes($value);
} elseif ($ini_name === 'enable_cli') {
$value = in_array($value, ['1', 'true', true, 1]);
$value = in_array($value, ['1', 'true', true, 1]) ? 1 : 0;
} elseif (is_int($required_value)) {
$required_value = (int) $required_value;
}