8000 [EventDispatcher] Add return type declarations by derrabus · Pull Request #33248 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[EventDispatcher] Add return type declarations #33248

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

Closed

Conversation

derrabus
Copy link
Member
@derrabus derrabus commented Aug 19, 2019
Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets #33228
License MIT
Doc PR N/A

Don't merge (see #33236). This PR illustrates how a fully typed event dispatcher component would look like, including everything that might break on the way and the impact the change has on other components.

The impact for userland implementation would be heavy, mainly because the changed EventSubscriberInterface is quite popular. If we would revert that interface, I would expect a pretty low impact: after all, applications/libraries rarely need to implement their own event dispatcher.

Fixes to tests and inconsistent return points will be backported.

@nicolas-grekas nicolas-grekas added this to the 5.0 milestone Aug 20, 2019
nicolas-grekas added a commit that referenced this pull request Aug 23, 2019
… (derrabus)

This PR was merged into the 3.4 branch.

Discussion
----------

[EventDispatcher] Fix mocks for ImmutableEventDispatcher

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #33228
| License       | MIT
| Doc PR        | N/A

Backport from #33248. This PR fixes mocks that return values that are incompatible with the annotated return type.

Commits
-------

874aaea Fix mocks for ImmutableEventDispatcher.
@derrabus derrabus force-pushed the improvement/typed-event-dispatcher branch from 21a4538 to 7eb9d14 Compare August 30, 2019 17:05
@nicolas-grekas
Copy link
Member
nicolas-grekas commented Nov 6, 2019

@derrabus what the status here? We'd like to tag beta yesterday :)

@nicolas-grekas
Copy link
Member

Confirmed closable on slack.

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.

3 participants
0