Skip to content

Add AbstractList::getOriginalKeyType() method - #233

Merged
jaapio merged 1 commit into
phpDocumentor:1.xfrom
mspirkov:add-getter-in-abstract-list
Nov 21, 2025
Merged

Add AbstractList::getOriginalKeyType() method#233
jaapio merged 1 commit into
phpDocumentor:1.xfrom
mspirkov:add-getter-in-abstract-list

Conversation

@mspirkov

Copy link
Copy Markdown
Contributor

It would be great to add this method. With it, we can determine whether the type for the key is explicitly specified. Currently, this is not possible in Collection.

@jaapio
jaapio merged commit 92a98ad into phpDocumentor:1.xNov 21, 2025
32 checks passed
@jaapio

Copy link
Copy Markdown
Member

Sounds good to me. Curious what you are building that you need this :-)

@mspirkov

Copy link
Copy Markdown
ContributorAuthor

I am adding support for generics to https://github.com/yiisoft/yii2-apidoc
We generate links for the types, so we have a custom type-to-string conversion there. That's exactly what I needed this getter for :)

@mspirkov

Copy link
Copy Markdown
ContributorAuthor

@jaapio Hi! Could you please make a release?

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mspirkov@jaapio