Skip to content

Commit 92a98ad

Browse files
authored
Merge pull request #233 from mspirkov/add-getter-in-abstract-list
Add `AbstractList::getOriginalKeyType()` method
2 parents f626740 + e846797 commit 92a98ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Types/AbstractList.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ public function __construct(?Type $valueType = null, ?Type $keyType = null)
4545
$this->keyType = $keyType;
4646
}
4747

48+
public function getOriginalKeyType(): ?Type
49+
{
50+
return $this->keyType;
51+
}
52+
4853
/**
4954
* Returns the type for the keys of this array.
5055
*/

0 commit comments

Comments
 (0)