-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Mark all methods that never return as such #4187
Mark all methods that never return as such #4187
Conversation
Codecov Report
@@ Coverage Diff @@
## 8.5 #4187 +/- ##
============================================
+ Coverage 84.23% 85.56% +1.33%
- Complexity 3934 6555 +2621
============================================
Files 154 222 +68
Lines 9779 15984 +6205
============================================
+ Hits 8237 13677 +5440
- Misses 1542 2307 +765
Continue to review full report at Codecov.
|
This should allow static analyzers to understand better why methods calling these methods also never return.
Does |
I think so. Before the fix, after the fix. But it's better if @muglug reviews this, that way we'll be sure. I needed to add that annotation on the child class because it overrides another one that is not /**
* {@inheritdoc}
*/
protected function getQuotedAlterTableChangeColumnLengthSQL() : array
{
$this->markTestIncomplete('Not implemented yet');
} and got the following error:
|
Can you send this against |
Done, sorry, that's what I intended to do in the first place 😅 Apparently it tripped up the roave BC-check, but that job probably does not care about annotations. |
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.
Looks good!
Apparently, in the "Other" section of this page, it says that void and no-return are separate things:
vs
And I think I understood why that is. In my case we have
called by with just that and
a static analyzer will think that |
This should allow static analyzers to understand better why methods
calling these methods also never return.