mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 10:07:52 +01:00
Fixes
This commit is contained in:
parent
9d3fee47af
commit
dd2d3a286b
@ -321,9 +321,9 @@ final class Analyzer
|
||||
|
||||
$codebase = $project_analyzer->getCodebase();
|
||||
|
||||
$analysis_worker = Closure::fromCallable($this->analysisWorker(...));
|
||||
$analysis_worker = $this->analysisWorker(...);
|
||||
|
||||
$task_done_closure = Closure::fromCallable($this->taskDoneClosure(...));
|
||||
$task_done_closure = $this->taskDoneClosure(...);
|
||||
|
||||
if ($pool_size > 1 && count($this->files_to_analyze) > $pool_size) {
|
||||
$shuffle_count = $pool_size + 1;
|
||||
@ -385,7 +385,7 @@ final class Analyzer
|
||||
$file_reference_provider->setMethodParamUses([]);
|
||||
},
|
||||
$analysis_worker,
|
||||
Closure::fromCallable($this->getWorkerData(...)),
|
||||
$this->getWorkerData(...),
|
||||
$task_done_closure,
|
||||
);
|
||||
|
||||
|
@ -329,7 +329,7 @@ final class Scanner
|
||||
|
||||
$this->progress->debug('Have initialised forked process for scanning' . PHP_EOL);
|
||||
},
|
||||
Closure::fromCallable($this->scanAPath(...)),
|
||||
$this->scanAPath(...),
|
||||
/**
|
||||
* @return PoolData
|
||||
*/
|
||||
|
@ -37,7 +37,7 @@ final class DynamicFunctionStorageProvider
|
||||
*/
|
||||
public function registerClass(string $class): void
|
||||
{
|
||||
$callable = Closure::fromCallable([$class, 'getFunctionStorage']);
|
||||
$callable = $class::getFunctionStorage(...);
|
||||
|
||||
foreach ($class::getFunctionIds() as $function_id) {
|
||||
$this->registerClosure($function_id, $callable);
|
||||
|
@ -36,7 +36,7 @@ final class PropertyVisibilityProvider
|
||||
*/
|
||||
public function registerClass(string $class): void
|
||||
{
|
||||
$callable = Closure::fromCallable([$class, 'isPropertyVisible']);
|
||||
$callable = $class::isPropertyVisible(...);
|
||||
|
||||
foreach ($class::getClassLikeNames() as $fq_classlike_name) {
|
||||
$this->registerClosure($fq_classlike_name, $callable);
|
||||
|
Loading…
Reference in New Issue
Block a user