Skip to content

Commit

Permalink
Only show interesting array intersections
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Oct 20, 2020
1 parent 53ffb21 commit 19aa905
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psalm/Type/Atomic/ObjectLike.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ function ($name, Union $type): string {
implode(', ', $property_strings) .
'}'
. ($this->previous_value_type
&& (!$this->previous_value_type->isMixed()
|| ($this->previous_key_type && !$this->previous_key_type->isArrayKey()))
? '<' . ($this->previous_key_type ? $this->previous_key_type->getId() . ', ' : '')
. $this->previous_value_type->getId() . '>'
: '');
Expand Down

0 comments on commit 19aa905

Please sign in to comment.