1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Expose queueClassLikeForScanning (#3070)

This commit is contained in:
Bruce Weirdan 2020-04-06 00:25:47 +03:00 committed by GitHub
parent c50faeafee
commit 5be4cc2582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,6 @@ use function strrpos;
use function strtolower;
use function substr;
use function substr_count;
use function preg_replace;
class Codebase
{
@ -1705,4 +1704,17 @@ class Codebase
$value_type ?? Type::getMixed(),
];
}
/**
* @param array<string, mixed> $phantom_classes
* @psalm-suppress PossiblyUnusedMethod part of the public API
*/
public function queueClassLikeForScanning(
string $fq_classlike_name,
bool $analyze_too = false,
bool $store_failure = true,
array $phantom_classes = []
): void {
$this->scanner->queueClassLikeForScanning($fq_classlike_name, $analyze_too, $store_failure, $phantom_classes);
}
}