Skip to content

Conversation

@Steveb-p
Copy link
Contributor

🎫 Issue N/A

Description:

This PR introduces a risky rule that will prefix all global, compiler optimized (generating simplified OPCode operations under certain conditions) function calls with \
https://cs.symfony.com/doc/rules/function_notation/native_function_invocation.html

image

For example, it prefixes all sprintf calls, because in newer versions of PHP compiler can recognize that no special processing is actually being done (for example, "Something %s" foo is used as string) and can be replaced with interpolation OPCode instead).

For QA:

Documentation:

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant