Is there an option to make phplint fail if a var_dump is in the code?

50 Views Asked by At

We are using phplint to check our code and I am trying to find an option that would make it fail if there is a var_dump somwehere in the code. As I could not find an option for it, is there another way to achieve this?

Thanks for your help!

1

There are 1 best solutions below

0
On BEST ANSWER

A static analysis tool such as PHP_CodeSniffer can (and should) be used to perform a check such as the one you describe.