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

[8.x] Improve Tappable::tap() return type #39685

Merged
merged 1 commit into from
Nov 19, 2021
Merged

[8.x] Improve Tappable::tap() return type #39685

merged 1 commit into from
Nov 19, 2021

Conversation

axlon
Copy link
Contributor

@axlon axlon commented Nov 18, 2021

Similar to #38018.

Currently Tappable::tap() is documented as mixed, which prevents IDEs from autocompleting as well as hindering static analysis. Unlike the global tap() helper, this method's return type is entirely predictable and can be narrowed down to $this|\Illuminate\Support\HigherOrderTapProxy

@taylorotwell taylorotwell merged commit d3c8c8e into laravel:8.x Nov 19, 2021
@axlon axlon deleted the patch-2 branch November 19, 2021 14:16
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