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