Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Feb 18, 2025
1 parent b01cf3c commit 2b291ff
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1,783 deletions.
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<file>tests/</file>

<!-- These are just examples and stub classes/files, so it doesn't really matter if they're PSR-2 compliant. -->
<exclude-pattern>src/Psalm/Internal/Preloader.php</exclude-pattern>
<exclude-pattern>src/Psalm/Internal/PreloaderList.php</exclude-pattern>
<exclude-pattern>src/Psalm/Internal/Stubs/</exclude-pattern>
<exclude-pattern>tests/fixtures/</exclude-pattern>

Expand Down
3 changes: 0 additions & 3 deletions src/Psalm/Internal/Cli/LanguageServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Psalm\Internal\LanguageServer\ClientConfiguration;
use Psalm\Internal\LanguageServer\LanguageServer as LanguageServerLanguageServer;
use Psalm\Internal\LanguageServer\PathMapper;
use Psalm\Internal\Preloader;
use Psalm\Report;

use function array_key_exists;
Expand Down Expand Up @@ -315,8 +314,6 @@ static function (string $arg) use ($valid_long_options): void {
$ini_handler->check();
}

Preloader::preload();

setlocale(LC_CTYPE, 'C');

$path_mapper = self::createPathMapper($options, $current_dir);
Expand Down
8 changes: 1 addition & 7 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1019,13 +1019,7 @@ private static function restart(array $options, int $threads, int $scanThreads,
}
}

if ($hasJit) {
$progress->write("JIT compilation in progress... ");
}
Preloader::preload();
if ($hasJit) {
$progress->write("Done.".PHP_EOL.PHP_EOL);
}
Preloader::preload($progress, $hasJit);
}

/** @param array<int, string> $argv */
Expand Down
Loading

0 comments on commit 2b291ff

Please sign in to comment.