-
Notifications
You must be signed in to change notification settings - Fork 736
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
php-cs-fixer native_function_invocation rule #1606
php-cs-fixer native_function_invocation rule #1606
Conversation
|
This change would also need a CHANGELOG entry. Are there cases where this could break things (certain PHP versions?). |
@ruflin ok about adding a changelog entry (I'll do it right now). The case this could break things is where someone in his codebase mocked the built-in functions I think |
ff7d42c
to
33937ff
Compare
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.
LGTM.
For the mocking of the built in functions I assume that would be a testing use case? To make sure we don't break anything we probably best don't backport this to 6.x.
CHANGELOG.md
Outdated
@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file based on the | |||
### Added | |||
|
|||
### Improvements | |||
* Added `native_function_invocation` CS rule |
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 you add the PR number / link to it?
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.
Yep! Sorry about that 😄
33937ff
to
4d98f45
Compare
Yep, exactly |
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.
LGTM. Let's see if @p365labs has concerns.
@massimilianobraglia & @ruflin make sense to me.
|
Introduced php-cs-fixer native_function_invocation rule and applied linting