Skip to content
Permalink
Browse files

Fix references

  • Loading branch information
muglug committed Dec 18, 2019
1 parent cb797c6 commit 11433dc9d0ac40ea0ba3b61a3951aa7783d04262
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php
@@ -137,7 +137,7 @@ public function analyze(

$cased_method_id = null;

$class_storage = null;
$appearing_class_storage = null;

if ($global_context) {
foreach ($global_context->constants as $const_name => $var_type) {
@@ -382,8 +382,8 @@ public function analyze(

$template_types = $storage->template_types;

if ($class_storage && $class_storage->template_types) {
$template_types = array_merge($template_types ?: [], $class_storage->template_types);
if ($appearing_class_storage && $appearing_class_storage->template_types) {
$template_types = array_merge($template_types ?: [], $appearing_class_storage->template_types);
}

$params = $storage->params;
@@ -622,7 +622,7 @@ function (FunctionLikeParameter $p) {
$this->checkParamReferences(
$statements_analyzer,
$storage,
$class_storage,
$appearing_class_storage,
$context
);
}

0 comments on commit 11433dc

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