From e84679782827a5b00b255af800de0b9f5ddc4500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=BF=D0=B8?= =?UTF-8?q?=D1=80=D0=BA=D0=BE=D0=B2?= Date: Fri, 21 Nov 2025 17:56:27 +0400 Subject: [PATCH] Add `AbstractList::getOriginalKeyType()` method --- src/Types/AbstractList.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Types/AbstractList.php b/src/Types/AbstractList.php index ee8ace8..d5fe03d 100644 --- a/src/Types/AbstractList.php +++ b/src/Types/AbstractList.php @@ -45,6 +45,11 @@ public function __construct(?Type $valueType = null, ?Type $keyType = null) $this->keyType = $keyType; } + public function getOriginalKeyType(): ?Type + { + return $this->keyType; + } + /** * Returns the type for the keys of this array. */