Skip to content

Conversation

@mspirkov
Copy link
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.x Nov 21, 2025
32 checks passed
@jaapio
Copy link
Member

jaapio commented Nov 21, 2025

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

@mspirkov
Copy link
Contributor Author

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
Contributor Author

@jaapio Hi! Could you please make a release?

Sign up for free to 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