We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
the DevelopmentCodeFragment Rule does not detect unwanted functions like var_dump, print_r when they occur in a non-global namespace.
var_dump
print_r
<?php class Foo { private function baz() { var_dump(""); } }
The method Foo::baz() calls the typical debug function var_dump() which is mostly only used during development.
<?php namespace baz; class Foo { private function baz() { var_dump(""); } }
The text was updated successfully, but these errors were encountered:
any updates on this one?
Sorry, something went wrong.
it's still not working with namespace :(
I just submitted PR #571 to address this!
Successfully merging a pull request may close this issue.
Hi,
the DevelopmentCodeFragment Rule does not detect unwanted functions like
var_dump
,print_r
when they occur in a non-global namespace.This works:
The method Foo::baz() calls the typical debug function var_dump() which is mostly only used during development.
This does not work:
The text was updated successfully, but these errors were encountered: