Skip to content
Permalink
Browse files

We cannot use `\Psalm\Internal\Fork\Pool` before we autoloaded (#2082)

  • Loading branch information...
Nyholm authored and muglug committed Aug 31, 2019
1 parent 37d09cd commit 5fa06059eebc7e750bb5a649acc83e20dcf5033b
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/psalm-language-server.php
@@ -154,13 +154,6 @@ function ($arg) use ($valid_long_options, $valid_short_options) {
exit(1);
}
if (ini_get('pcre.jit') === '1'
&& PHP_OS === 'Darwin'
&& version_compare(PHP_VERSION, '7.3.0') >= 0
) {
die(\Psalm\Internal\Fork\Pool::MAC_PCRE_MESSAGE . PHP_EOL . PHP_EOL);
}
if (isset($options['root'])) {
$options['r'] = $options['root'];
}
@@ -190,6 +183,13 @@ function ($arg) use ($valid_long_options, $valid_short_options) {
exit;
}
if (ini_get('pcre.jit') === '1'
&& PHP_OS === 'Darwin'
&& version_compare(PHP_VERSION, '7.3.0') >= 0
) {
die(\Psalm\Internal\Fork\Pool::MAC_PCRE_MESSAGE . PHP_EOL . PHP_EOL);
}
$ini_handler = new \Psalm\Internal\Fork\PsalmRestarter('PSALM');
$ini_handler->disableExtension('grpc');

0 comments on commit 5fa0605

Please sign in to comment.
You can’t perform that action at this time.