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

PHPStan - Ensure Subscribers Are Registered as Shared #7129

Open
CrochetFeve0251 opened this issue Nov 21, 2024 · 0 comments
Open

PHPStan - Ensure Subscribers Are Registered as Shared #7129

CrochetFeve0251 opened this issue Nov 21, 2024 · 0 comments

Comments

@CrochetFeve0251
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When registering a subscriber we don't want to load it twice.
Due to that we need to make it shared.
Describe the solution you'd like
A custom PHPStan rule should be created to and make sure each time a class implements Subscriber_Interface we are sharing it.
Otherwise, raise an error.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants