Skip to content

Conversation

@taylorotwell
Copy link
Member

Event discovery currently does not properly discover events on listeners that use union types. This fixes that. 👍

/**
 * Handle the event.
 *
 * @param  SomeEvent  $event
 * @return void
 */
public function handle(SomeEvent|AnotherEvent $event)
{
    //
}

@taylorotwell taylorotwell merged commit 8c65b3d into 8.x Aug 14, 2021
@GrahamCampbell GrahamCampbell changed the title Support union types on event discovery [8.x] Support union types on event discovery Aug 14, 2021
@GrahamCampbell GrahamCampbell deleted the union-event-discovery branch August 14, 2021 16:48
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