Skip to content

Commit 19aa905

Browse files
committed
Only show interesting array intersections
1 parent 53ffb21 commit 19aa905

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Psalm/Type/Atomic/ObjectLike.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ function ($name, Union $type): string {
123123
implode(', ', $property_strings) .
124124
'}'
125125
. ($this->previous_value_type
126+
&& (!$this->previous_value_type->isMixed()
127+
|| ($this->previous_key_type && !$this->previous_key_type->isArrayKey()))
126128
? '<' . ($this->previous_key_type ? $this->previous_key_type->getId() . ', ' : '')
127129
. $this->previous_value_type->getId() . '>'
128130
: '');

0 commit comments

Comments
 (0)