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

[9.x] Add union type for expectedListener argument on assertListening method. #43522

Merged
merged 1 commit into from
Aug 3, 2022
Merged

Conversation

CharlesBilbo
Copy link
Contributor

@CharlesBilbo CharlesBilbo commented Aug 3, 2022

Added an array as a union type for the assertListening method.

The assert listening method can also be used to assert an event is being listened for on a subscriber but in order to do that you need to pass in an array like so

carbon

But the current implementation displays a type warning because it doesn't have a union.

@CharlesBilbo CharlesBilbo changed the title add union type for expected listener Add union type for expected listener Aug 3, 2022
@CharlesBilbo CharlesBilbo changed the title Add union type for expected listener Add union type for expectedListener argument on assertListening method. Aug 3, 2022
@nunomaduro nunomaduro changed the title Add union type for expectedListener argument on assertListening method. [9.x] Add union type for expectedListener argument on assertListening method. Aug 3, 2022
@taylorotwell taylorotwell merged commit 75d10c5 into laravel:9.x Aug 3, 2022
Ken-vdE pushed a commit to Ken-vdE/framework that referenced this pull request Aug 9, 2022
Co-authored-by: charlesbilbo <c.bilbo@rxmg.com>
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