8000 [EventDispatcher] Minor: Avoid not needed null check in dispatch() by brainexe · Pull Request #37669 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[EventDispatcher] Minor: Avoid not needed null check in dispatch() #37669

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

Merged
merged 1 commit into from
Aug 2, 2020

Conversation

brainexe
Copy link
Contributor
Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? no
License MIT
Doc PR -

Just found a not needed null check in the heavyly called EventDispatcher::dispatch() method - the $eventName get's always a string now - no null anymore, as it gets the class name instead.

@fabpot
Copy link
Member
fabpot commented Aug 2, 2020

Thank you @brainexe.

@fabpot fabpot merged commit 4105e93 into symfony:master Aug 2, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0