top | item 30485607 (no title) biryani_chicken | 4 years ago Sounds like it would be a good idea to get the CI process to check for usage of debugging functions. I'm sure it would be possible to write a phpstan rule to forbid var_dump. Maybe another solution would be to make them noops on production. discuss order hn newest Master_Odin|4 years ago You can use phpcs <https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src...> to easily do this. mschuster91|4 years ago > Maybe another solution would be to make them noops on production.There is a way, but it's dangerous: https://www.php.net/manual/en/function.runkit7-function-rede...
Master_Odin|4 years ago You can use phpcs <https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src...> to easily do this.
mschuster91|4 years ago > Maybe another solution would be to make them noops on production.There is a way, but it's dangerous: https://www.php.net/manual/en/function.runkit7-function-rede...
Master_Odin|4 years ago
mschuster91|4 years ago
There is a way, but it's dangerous: https://www.php.net/manual/en/function.runkit7-function-rede...