Skip to content

Commit f584311

Browse files
herndlmondrejmirtes
authored andcommitted
Remove unnecessary ConstantArrayType::getKeyType
1 parent 06328f0 commit f584311

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Type/Constant/ConstantArrayType.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,6 @@ private function powerSet(array $in): array
192192
return $return;
193193
}
194194

195-
public function getKeyType(): Type
196-
{
197-
if (count($this->keyTypes) > 1) {
198-
return new UnionType($this->keyTypes);
199-
}
200-
201-
return parent::getKeyType();
202-
}
203-
204195
/**
205196
* @return array<int, ConstantIntegerType|ConstantStringType>
206197
*/

0 commit comments

Comments
 (0)