coding-standard
coding-standard copied to clipboard
sprintf() is now optimized by the compiler
See: https://github.com/php/php-src/pull/14546
Therefore is should be added to FunctionHelper::SPECIAL_FUNCTIONS
has sprintf's function signature changed?
Is it now a language construct (like empty()) vs a function?
what makes it "special" ?
@bkdotcom FunctionHelper::SPECIAL_FUNCTIONS is used by SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions to indicate functions that can be optimized by compiler when fully qualified, at least that's what the code tells me
Implemented in https://github.com/slevomat/coding-standard/commit/dd05cd6da4b789de52c60741e353ce4df3d36a2c
Thanks!