php-parallel-lint / PHP-Var-Dump-Check

Find forgotten variables dump in PHP source code.
Other
21 stars 10 forks source link

Add --custom-function parameter to check #5

Closed umutphp closed 4 years ago

umutphp commented 4 years ago

In one of the projects that I have been working for a while, there are some legacy custom dump functions created and used frequently by the team. A sample function is;

function pre_dump( $var ) { echo '<pre>'; var_dump( $var ); echo '</pre>'; } The check tool can not find the usage of such kind of functions. A sample usage might be;

$ ./vendor/bin/var-dump-check --no-colors --tracy --custom-function pre_dump,echo_dump .

grogy commented 4 years ago

Hello,

it makes me sense. Thanks for PR, I will review it

grogy commented 4 years ago

It looks very good. You have some comments in PR. This issue i close, because PR will be merged. Thank you