Generic.PHP.ForbiddenFunctions: Support for function within a namespace #3937
soullivaneuh
started this conversation in
Ideas
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Summary
Using rector, I can migrate my codebase to use the
JSON_THROW_ON_ERROR
flag with the nativejson_(en|de)code
function instead of using\Safe\json_decode
usage from the thecodingmachine/safe package.In order to prevent the usage of the
\Safe\json_decode
function, I would like to configuring it on theGeneric.PHP.ForbiddenFunctions
sniff like so:Unfortunately, this sniff looks to support only native function call.
Is the support of namespaced function for this sniff an idea to be considered?
Concrete case to be managed
Beta Was this translation helpful? Give feedback.
All reactions