Hacker News new | ask | show | jobs
by biryani_chicken 1569 days 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.
2 comments

> 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...