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

[10.x] Add typehints to app and resolve helpers for better resolution from container #48286

Closed
wants to merge 1 commit into from
Closed

[10.x] Add typehints to app and resolve helpers for better resolution from container #48286

wants to merge 1 commit into from

Conversation

localusercamp
Copy link
Contributor

This PR adds typehints for app and resolve helpers.

Before

$repository = resolve(MyRepository::class); // returns mixed

After

$repository = resolve(MyRepository::class); // returns MyRepository|mixed

@driesvints driesvints changed the title Add typehints to app and resolve helpers for better resolution from container [10.x] Add typehints to app and resolve helpers for better resolution from container Sep 4, 2023
@driesvints
Copy link
Member

Please see previous attempts.

@driesvints driesvints closed this Sep 4, 2023
@localusercamp localusercamp deleted the add-docblock-template-to-resolve-and-app-helpers branch September 4, 2023 11:24
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