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

Leverage generic persistence event classes #2438

Merged
merged 1 commit into from
May 3, 2022

Conversation

franmomu
Copy link
Contributor

@franmomu franmomu commented May 1, 2022

Q A
Type improvement
BC Break no
Fixed issues

Summary

Follows doctrine/persistence#273 and imitates doctrine/orm#9633

@franmomu franmomu added this to the 2.4.0 milestone May 1, 2022
@@ -12,6 +12,8 @@
/**
* Lifecycle Events are triggered by the UnitOfWork during lifecycle transitions
* of documents.
*
* @template-extends BaseLifecycleEventArgs<DocumentManager>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recall we're free to remove assert($dm instanceof DocumentManager); here now :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I guessed PHPStan would complain about redundant condition or similar, thanks!

@malarzm malarzm merged commit df2ab97 into doctrine:2.4.x May 3, 2022
@malarzm
Copy link
Member

malarzm commented May 3, 2022

Thanks @franmomu!

@franmomu franmomu deleted the event_generics branch May 4, 2022 08:05
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.

2 participants