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

Signature of EventDispatcherInterface::dispatch() has changed #733

Open
wants to merge 6 commits into
base: 8.x-1.x
Choose a base branch
from

Conversation

pfrenssen
Copy link
Contributor

In Drupal 9.1 the order of the arguments to this method has been changed.

Ref. Change record #3154407: Signature of EventDispatcherInterface::dispatch() has changed

Fixes #725.

This also updates the touched classes with modern practices, such as introducing missing type hints, and some small unrelated fixes.

@pfrenssen
Copy link
Contributor Author

This is failing on PHP 7.3 because it introduces typed properties which are PHP7.4+. Let's block this on #732 which increases our minimum PHP requirement to 7.4.

@pfrenssen
Copy link
Contributor Author

Nice, the type hints that were added have uncovered some bugs in the BundleFormAlter class. It indeed looks like this is some very early code that is not following correct OO practices, and has mixed up some things like entity IDs and bundles.

I will handle this in a separate PR.

@pfrenssen pfrenssen self-assigned this Dec 17, 2021
pfrenssen added a commit that referenced this pull request Dec 19, 2021
This reverts commit 7e1790c. This change is
being handled in #733.
@claudiu-cristea
Copy link
Contributor

@pfrenssen this is handler already in the D10 compatibility PR. This should be closed.

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.

Fix event dispatcher BC
3 participants