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

Fix one-line method for anonymous classes #1021

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

Slamdunk
Copy link
Contributor

Fix #1020

@@ -460,12 +460,18 @@ public function myMethod()
{
return; // +3
}
} // -3

public function m1(): void {} // +1
Copy link
Contributor

@mvorisek mvorisek Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a test for one-line method in non-anonymous class as well (at least in this test file it is not tested currently)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (84838ee) 84.02% compared to head (0fe98c4) 84.00%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1021      +/-   ##
============================================
- Coverage     84.02%   84.00%   -0.02%     
- Complexity     1192     1193       +1     
============================================
  Files            71       71              
  Lines          4245     4246       +1     
============================================
  Hits           3567     3567              
- Misses          678      679       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sebastianbergmann sebastianbergmann merged commit a2a845d into sebastianbergmann:main Nov 21, 2023
19 of 20 checks passed
@Slamdunk Slamdunk deleted the anonymous_classes branch November 21, 2023 15:25
@mvorisek
Copy link
Contributor

Thank you both ❤️

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

Successfully merging this pull request may close these issues.

Single line method is ignored
3 participants