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

[PhpStan] Fix @template boundaries #126

Merged
merged 1 commit into from
Feb 3, 2022
Merged

Conversation

ogizanagi
Copy link
Member

See https://arnaud.le-blanc.net/post/phpstan-generics.html#bounds

With this, PhpStan properly detects the return type of ContentManagerInterface::getContent(Foo::class, 'foo') is of type Foo and not just object

@ogizanagi ogizanagi merged commit fa793c9 into master Feb 3, 2022
@ogizanagi ogizanagi deleted the fix-phpstan-template branch February 3, 2022 09:36
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.

1 participant