Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Nov 8, 2019
1 parent 1b6b8fd commit 895737d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/ClassAnalyzer.php
Expand Up @@ -1713,7 +1713,7 @@ public static function analyzeClassMethodReturnType(
$template_params[] = new Type\Union([
new Type\Atomic\TTemplateParam(
$param_name,
reset($template_map)[0],
\reset($template_map)[0],
$key
)
]);
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php
Expand Up @@ -189,7 +189,7 @@ public function analyze(
$template_params[] = new Type\Union([
new Type\Atomic\TTemplateParam(
$param_name,
reset($template_map)[0],
\reset($template_map)[0],
$key
)
]);
Expand Down
Expand Up @@ -602,7 +602,6 @@ public static function updateArrayType(
// do nothing
}
}

}

return null;
Expand Down
Expand Up @@ -1553,8 +1553,9 @@ public static function getClassTemplateParams(
$e = $calling_class_storage->template_type_extends;

if ($lhs_type_part instanceof TGenericObject) {
if ($calling_class_storage->template_types && $class_storage === $calling_class_storage) {
if ($class_storage === $calling_class_storage && $calling_class_storage->template_types) {
$i = 0;

foreach ($calling_class_storage->template_types as $type_name => $_) {
if (isset($lhs_type_part->type_params[$i])) {
$class_template_params[$type_name][$calling_class_storage->name] = [
Expand Down

0 comments on commit 895737d

Please sign in to comment.