Skip to content

docs: fix the emit() bug history and the migration target version - #8

Merged
muhammetsafak merged 2 commits into
mainfrom
docs/emit-history-and-migration-version
Nov 23, 2026
Merged

muhammetsafak merged 2 commits into
mainfrom
docs/emit-history-and-migration-version

Conversation

@muhammetsafak

Copy link
Copy Markdown
Contributor

What

  • README and docs/Troubleshooting.md / docs/Migration-Guide.md said no initphp/events release has the call_user_func_array($listeners, ...) bug. That holds for EventEmitter (it never existed in 1.0-1.0.2), but initphp/events tag 1.0 had the same mistake in Event::trigger() (call_user_func_array($events, ...), fixed in 1.0.1, commit e7b453f). The three places now say so, and the 1.x migration step no longer claims the facade is unaffected.
  • The README installs ^3.0, while the Migration Guide it points to installed ^2.0 in the same steps and matrix. The guide now targets ^3.0, and says to use ^2.1 below PHP 8.2.

wiki-sync.sh --check docs passes. Docs only.

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.
@muhammetsafak
muhammetsafak merged commit 1b74647 into main Nov 23, 2026
6 checks passed
@muhammetsafak
muhammetsafak deleted the docs/emit-history-and-migration-version branch November 23, 2026 07:24
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.

1 participant