Repository navigation
docs: fix the emit() bug history and the migration target version - #8
Merged
Merged
Conversation
initphp/events tag 1.0 shipped the same call_user_func_array mistake in Event::trigger(), fixed in 1.0.1, so "no release has the bug" only holds for EventEmitter. Point the migration guide at ^3.0 like the README, and name ^2.1 for PHP below 8.2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
docs/Troubleshooting.md/docs/Migration-Guide.mdsaid noinitphp/eventsrelease has thecall_user_func_array($listeners, ...)bug. That holds forEventEmitter(it never existed in 1.0-1.0.2), butinitphp/eventstag1.0had the same mistake inEvent::trigger()(call_user_func_array($events, ...), fixed in1.0.1, commite7b453f). The three places now say so, and the 1.x migration step no longer claims the facade is unaffected.^3.0, while the Migration Guide it points to installed^2.0in the same steps and matrix. The guide now targets^3.0, and says to use^2.1below PHP 8.2.wiki-sync.sh --check docspasses. Docs only.