We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53ffb21 commit 19aa905Copy full SHA for 19aa905
src/Psalm/Type/Atomic/ObjectLike.php
@@ -123,6 +123,8 @@ function ($name, Union $type): string {
123
implode(', ', $property_strings) .
124
'}'
125
. ($this->previous_value_type
126
+ && (!$this->previous_value_type->isMixed()
127
+ || ($this->previous_key_type && !$this->previous_key_type->isArrayKey()))
128
? '<' . ($this->previous_key_type ? $this->previous_key_type->getId() . ', ' : '')
129
. $this->previous_value_type->getId() . '>'
130
: '');
0 commit comments