Skip to content

Commit

Permalink
Optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 7, 2022
1 parent 6d88882 commit 52b7bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/Constant/ConstantArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ public function generalize(GeneralizePrecision $precision): Type
continue;
}

$accessoryTypes[] = new HasOffsetValueType($keyType, $this->valueTypes[$i]);
$accessoryTypes[] = new HasOffsetValueType($keyType, $this->valueTypes[$i]->generalize($precision));
}

return TypeCombinator::intersect($arrayType, ...$accessoryTypes);
Expand Down

0 comments on commit 52b7bec

Please sign in to comment.