-
Notifications
You must be signed in to change notification settings - Fork 154
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
[TASK] Automatically add a backslash for global functions #909
Conversation
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.
I'm sure I added something to PHPCS (the other one, not the fixer) to catch this, shortly after you added the FQN prefix throughout. Though even a triple safety lock did not prevent the Deepwater Horizon oil spill. So, the more the merrier (to coin a more cheery phrase).
Could you complete the 'edit' part of the 'copy, paste, edit' for the changelog ;))
CHANGELOG.md
Outdated
- Upgrade to PHPUnit 7.5 | ||
([#908](https://github.com/MyIntervals/emogrifier/pull/908)) |
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.
Forget to edit after copy and paste? ;))
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.
Good catch. Obviously very much so. :-)
Indeed. (At least we seem to have a working PHPCS rule for this now - I've just checked.) |
Using a leading backslash when calling a function in the global namespace provides a (small) performance benefit. Adjust the PHP CS Fixer configuration to add any missing backslashes.
0d8753e
to
2cb778a
Compare
Fixed the changelog (also the issue number there) and repushed. |
Using a leading backslash when calling a function in the global namespace
provides a (small) performance benefit.
Adjust the PHP CS Fixer configuration to add any missing backslashes.