Skip to content

Commit

Permalink
Prevent overwriting storage type during analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Mar 13, 2021
1 parent 90fd1c5 commit b549989
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ function ($bound) {
if ($fq_class_name === 'SplObjectStorage') {
$generic_param_type = Type::getEmpty();
} else {
$generic_param_type = array_values($base_type)[0];
$generic_param_type = clone array_values($base_type)[0];
}
}

Expand Down

0 comments on commit b549989

Please sign in to comment.