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 no hooks are present inside the ORM logic #7125

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

PHPStan: Ensure no hooks are present inside the ORM logic #7125

CrochetFeve0251 opened this issue Nov 21, 2024 · 0 comments
Labels
quick win type: enhancement Improvements that slightly enhance existing functionality and are fast to implement

Comments

@CrochetFeve0251
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently there is no way to warn a developer going against the convention of not putting any hook inside ORMs.
Describe the solution you'd like
We need a custom PHPStan rule detecting the usage of filters and actions inside the classes extending BerlinDB queries classes.

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.

@CrochetFeve0251 CrochetFeve0251 added type: enhancement Improvements that slightly enhance existing functionality and are fast to implement quick win labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quick win type: enhancement Improvements that slightly enhance existing functionality and are fast to implement
Projects
None yet
Development

No branches or pull requests

1 participant