diff --git a/dictionaries/scripts/update_signaturemap_from_other_tool.php b/dictionaries/scripts/update_signaturemap_from_other_tool.php index e2547a587..21fb61166 100644 --- a/dictionaries/scripts/update_signaturemap_from_other_tool.php +++ b/dictionaries/scripts/update_signaturemap_from_other_tool.php @@ -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) . '\''; diff --git a/src/Psalm/Internal/Cli/Psalm.php b/src/Psalm/Internal/Cli/Psalm.php index f87b17bef..8c3e4f027 100644 --- a/src/Psalm/Internal/Cli/Psalm.php +++ b/src/Psalm/Internal/Cli/Psalm.php @@ -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); } ); diff --git a/src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php b/src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php index e29f9d68f..1dc6033b6 100644 --- a/src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php +++ b/src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php @@ -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]; }