Skip to content

Commit

Permalink
Fix TKeyedArray replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
klimick committed May 8, 2024
1 parent 544b82d commit 40156a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Type/Atomic/TKeyedArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ public function replaceTemplateTypesWithStandins(

$cloned = clone $this;
$cloned->properties = [$replaced_list_type];
$cloned->fallback_params = [$this->fallback_params[1], $replaced_list_type];
$cloned->fallback_params = [$this->fallback_params[0], $replaced_list_type];

return $cloned;
}
Expand Down

0 comments on commit 40156a4

Please sign in to comment.