Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify SplObjectStorage values #3111

Closed
BackEndTea opened this issue Mar 23, 2020 · 3 comments · Fixed by phpstan/phpstan-src#301
Closed

Allow to specify SplObjectStorage values #3111

BackEndTea opened this issue Mar 23, 2020 · 3 comments · Fixed by phpstan/phpstan-src#301

Comments

@BackEndTea
Copy link
Contributor

Feature request

Currently it is only possible to specify the key of the SplObjectStorage, but its not possible to specify the value:

https://phpstan.org/r/9579c226-e037-412e-8313-2a915e5e010b

@ondrejmirtes
Copy link
Member

Feel free to contribute the stub for this class 😊 You can also look at other SPL classes and consider if they should be generic.

@karser
Copy link

karser commented Mar 23, 2020

Indeed that's good idea. In psalm it's done the same way https://psalm.dev/r/2061a38a48

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants