-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] use ServicesResetterInterface
instead of concrete ServicesResetter
in ResetServicesListener
#60999
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
base: 7.4
Are you sure you want to change the base?
Conversation
c0f0ae3
to
aa6fb3b
Compare
Hi 👋 I hope you're all doing well! I think this kind of change is acceptable in a new major version (like now), but if I'm mistaken, I'm happy to update the PR. |
aa6fb3b
to
814a6d8
Compare
The change itself looks reasonable to me, but that's a new feature and we should merge it into the |
@@ -31,7 +32,8 @@ public static function provideResetServices(): iterable | |||
*/ | |||
public function testResetServices(bool $shouldReset) | |||
{ | |||
$servicesResetter = $this->createMock(ServicesResetter::class); | |||
/** @var ServicesResetterInterface&MockObject $servicesResetter */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this @var
is not necessary. $this->createMock
already has this as return type.
814a6d8
to
a240e9a
Compare
…icesResetter` in `ResetServicesListener`
a240e9a
to
83714d6
Compare
Hi 👋 I hope you're all doing well! |
8.0 | ||
--- | ||
|
||
* Use `ServicesResetterInterface` instead of concrete `ServicesResetter` in `ResetServicesListener` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Use `ServicesResetterInterface` instead of concrete `ServicesResetter` in `ResetServicesListener` | |
* Allow any `ServiceResetterInterface` implementation in `ResetServicesListener` |
Summary
This PR updates the
ResetServicesListener
to depend on theServicesResetterInterface
instead of the concreteServicesResetter
class.