Closed brunoauger closed 7 years ago
Hello @brunoauger,
In the php parser, these nodes are called exit nodes.
We've added a separate visitor no_exit_statements
to handle these exit nodes. More info can be found here: https://github.com/phpro/grumphp/blob/master/doc/tasks/phpparser.md#no_exit_statements
FYI:
I've added an additional note to the documentation of the forbidden_function_calls
visitor: https://github.com/phpro/grumphp/commit/36d53d49e2535b07b8bdd582fbc1d3b827ea2f6e
Hello, I'm trying to remove all die() or exit() from my code....
My configuration
It doesn't work... for the function die() So I did that in: vendor/phpro/grumphp/src/GrumPHP/Parser/Php/Visitor/ForbiddenFunctionCallsVisitor.php
And it works as expected!
Improvement I would like to avoid override the bundle...Workable ?