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

fix Container::getByType() compatibility with PHPStan #285

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

JanTvrdik
Copy link
Contributor

Without specifying the upper bound, PHPStan fails to resolve the return type.

@dg
Copy link
Member

dg commented Feb 22, 2023

Thanks

@dg dg merged commit bae2a7a into nette:master Feb 22, 2023
@ondrejmirtes
Copy link
Contributor

Generics should be verified with files like these analysed by PHPStan :) https://github.com/laravel/framework/blob/10.x/types/Support/Collection.php

@JanTvrdik JanTvrdik deleted the patch-1 branch March 16, 2023 15:08
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.

3 participants