-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix forgotten exception throws #10489
Conversation
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.
Oh wow good catch! I'm pretty careless sometimes 🤦
Argh it breaks the test suite… somehow we are relying on this feature, which does not work with Persistence 3, and somehow that did not break the tests before 😓 I should have changed them in #9592 |
I'm looking into it. |
d642045
to
0481a54
Compare
@janedbal I think adding a dependency for one rule isn't a great idea. Maybe there are more rules worth implementing? |
There might be some, but the package is aiming to more strict codebases than this one is, so many of them could not be enabled. Also, it is tested only on PHP 7.4+. So probably not worth the effort. |
this created this b/c break in a minor release :( #10621 |
I believe those exceptions are meant to be thrown, right? Otherwise, this code is useles.
Detected by https://github.com/shipmonk-rnd/phpstan-rules#forbidunusedexception