-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Recognize simple current-class objects for unused private method #1069
base: master
Are you sure you want to change the base?
Recognize simple current-class objects for unused private method #1069
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1069 +/- ##
============================================
- Coverage 92.56% 91.88% -0.69%
- Complexity 1252 1286 +34
============================================
Files 111 111
Lines 3429 3498 +69
============================================
+ Hits 3174 3214 +40
- Misses 255 284 +29 ☔ View full report in Codecov by Sentry. |
4ce69a6
to
f02541c
Compare
ab8a979
to
6ca471f
Compare
6ca471f
to
8354e05
Compare
Type: bugfix
Issue: Resolves #252 / Resolves #558 / Resolves #937
Breaking change: no
Recognize simple constructions of the current class for unused private method rule, such as:
new Foo
(with Foo matching FQCN of the current class, includingself
,static
)clone $this
(or clone of a variable recognized as of type of the current class)