-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
Remove $ as a valid char in class and method names #2662
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2662 +/- ##
============================================
- Coverage 80.00% 79.98% -0.02%
- Complexity 2292 2303 +11
============================================
Files 379 380 +1
Lines 6761 6770 +9
Branches 1222 1224 +2
============================================
+ Hits 5409 5415 +6
Misses 740 740
- Partials 612 615 +3
Continue to review full report at Codecov.
|
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.
Shouldn’t this be adapted for functions an other elements as well?
I didn't think of that. Yeah, I'm going to check if we have the same bug in the other ones |
Updated. |
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.
Can variables and parameters also have `` in the name?
I think that I'm missing something. This PR is not related with the use of In the parameters and variables we wasn't allowing that char so there's nothing to change there. |
Thanks for the clarification! @BraisGabin |
This issue was spotted in #2656 (but it's not completely related with that issue).
Extracted from the issue:
I can't even write tests for this change because I can't create a name of a class with
$
if I'm not using. And the use of
in class names is exactly what is being talked in #2656. Right now we don't allow it.