-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[3.0] Removed all $that variables #12841
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
Conversation
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | ~ |
License | MIT |
Doc PR | ~ |
👍 |
👍 |
We have a few methods which are marked as internal and are public only for such |
@stof I'm not sure to understand what you mean. Can you give an example so that I'll be able to do it? |
@saro0h For |
And so many other ($self, $guesser, $test, ...) search the expression |
357e7d3
to
d63717e
Compare
Here you go (that was more work than I expected). Is that ok for you? |
d63717e
to
3743b76
Compare
@@ -106,7 +106,7 @@ public static function parseEscapeSequences($str, $quote) | |||
); | |||
} | |||
|
|||
public static function parseCallback($matches) | |||
private static function parseCallback($matches) |
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 we change the visibility of a method who are not flagged as @internal
? (even if it seem to be used only in closure)
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.
It's meant to be merged into 3.0 where BC breaks are allowed.
3743b76
to
2c3e708
Compare
* @internal | ||
*/ | ||
public function escapeString($str) | ||
private function escapeString($str) |
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.
What about inlining this one? Any other ones that could be inlined?
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.
This method is used 4 times in this class. Let me check in the other 39 files
2c3e708
to
7b33d1a
Compare
Changes have been made |
Thank you @saro0h. |
This PR was merged into the 3.0-dev branch. Discussion ---------- [3.0] Removed all $that variables | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Commits ------- 7b33d1a Removed all $that variables