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
ruflin
left a comment
There was a problem hiding this comment.
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
| ### Added | ||
|
|
||
| ### Improvements | ||
| * Added `native_function_invocation` CS rule |
There was a problem hiding this comment.
Can you add the PR number / link to it?
There was a problem hiding this comment.
Yep! Sorry about that 😄
33937ff to
4d98f45
Compare
Yep, exactly |
|
@massimilianobraglia & @ruflin make sense to me.
|
Introduced php-cs-fixer native_function_invocation rule and applied linting