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 27fcf6e commit b1e2e30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psalm/Type/Atomic/TKeyedArray.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 b1e2e30

Please sign in to comment.