Generic.PHP.ForbiddenFunctions: Support for function within a namespace #3937
soullivaneuh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Using rector, I can migrate my codebase to use the
JSON_THROW_ON_ERRORflag with the nativejson_(en|de)codefunction instead of using\Safe\json_decodeusage from the thecodingmachine/safe package.In order to prevent the usage of the
\Safe\json_decodefunction, I would like to configuring it on theGeneric.PHP.ForbiddenFunctionssniff 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