mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
unnecessary qualified names
This commit is contained in:
parent
10226c1c58
commit
3e29a3d961
@ -34,7 +34,7 @@ uksort($new_local, fn($a, $b) => strtolower($a) <=> strtolower($b));
|
||||
|
||||
foreach ($new_local as $name => $data) {
|
||||
if (!is_array($data)) {
|
||||
throw new \UnexpectedValueException('bad data for ' . $name);
|
||||
throw new UnexpectedValueException('bad data for ' . $name);
|
||||
}
|
||||
$return_type = array_shift($data);
|
||||
echo '\'' . str_replace("'", "\'", $name) . '\' => [\'' . str_replace("'", "\'", $return_type) . '\'';
|
||||
|
@ -212,7 +212,7 @@ final class Psalm
|
||||
$include_collector = new IncludeCollector();
|
||||
$first_autoloader = $include_collector->runAndCollect(
|
||||
// phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
|
||||
function () use ($current_dir, $options, $vendor_dir): ?\Composer\Autoload\ClassLoader {
|
||||
function () use ($current_dir, $options, $vendor_dir): ?ClassLoader {
|
||||
return CliUtils::requireAutoloaders($current_dir, isset($options['r']), $vendor_dir);
|
||||
}
|
||||
);
|
||||
|
@ -657,7 +657,7 @@ class TemplateStandinTypeReplacer
|
||||
if ($keyed_template instanceof TKeyedArray) {
|
||||
$key_type = $keyed_template->getGenericKeyType();
|
||||
} elseif ($keyed_template instanceof TList) {
|
||||
$key_type = \Psalm\Type::getInt();
|
||||
$key_type = Type::getInt();
|
||||
} else {
|
||||
$key_type = $keyed_template->type_params[0];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user