Skip to content
Permalink
Browse files

Fix unused variables now found in Psalm’s code

  • Loading branch information...
muglug committed May 2, 2019
1 parent 08bf101 commit 640c1d13a67cca1f86705ed494d3e7516463c411
@@ -69,7 +69,6 @@ public static function analyze(
if ($doc_comment) {
$file_path = $statements_analyzer->getRootFilePath();
$project_analyzer = $statements_analyzer->getFileAnalyzer()->project_analyzer;
$file_storage_provider = $codebase->file_storage_provider;
@@ -204,7 +203,6 @@ public static function analyze(
}
}
$project_analyzer = $statements_analyzer->getFileAnalyzer()->project_analyzer;
$codebase = $statements_analyzer->getCodebase();
if ($assign_value_type->hasMixed()) {
@@ -1262,7 +1262,6 @@ private function useTemplatedType(
private function registerFunctionLike(PhpParser\Node\FunctionLike $stmt, $fake_method = false)
{
$class_storage = null;
$fq_classlike_name = null;
if ($fake_method && $stmt instanceof PhpParser\Node\Stmt\ClassMethod) {
$cased_function_id = '@method ' . $stmt->name->name;
@@ -897,8 +897,6 @@ public function replaceTemplateTypesWithStandins(
) {
$keys_to_unset = [];
$new_types = [];
foreach ($this->types as $key => $atomic_type) {
if ($atomic_type instanceof Type\Atomic\TTemplateParam
&& isset($template_types[$key][$atomic_type->defining_class ?: ''])
@@ -1142,8 +1140,8 @@ public function replaceTemplateTypesWithArgTypes(array $template_types, Codebase
$template_type = clone $template_type;
}
} elseif ($codebase && $atomic_type->defining_class) {
foreach ($template_types as $replacement_key => $template_type_map) {
foreach ($template_type_map as $template_class => $type_map) {
foreach ($template_types as $template_type_map) {
foreach ($template_type_map as $template_class => $_) {
if (!$template_class) {
continue;
}

0 comments on commit 640c1d1

Please sign in to comment.
You can’t perform that action at this time.