To solve this issue, you should create a pull request adding the Insight described on the title.
Is there a way to view function call names at the moment? 馃
it is Squiz.PHP.DiscouragedFunctions.forbiddenFunctions in PHPCS
Could we add dump() and extract, compact and list?
Exactly, good idea @szepeviktor.
@pxgamer You just need to add this code:
ForbiddenFunctionsSniff::class => [
'sizeof' => 'count',
'delete' => 'unset',
// Any other...
]
Don't forget to test it locally to see if it works.
I'll take a look at it later, cheers. :+1:
Most helpful comment
it is Squiz.PHP.DiscouragedFunctions.forbiddenFunctions in PHPCS
Could we add dump() and extract, compact and list?