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
It would be useful to have a sniff detecting $this in closures for PHP 5.3 compatibility.
$this
The text was updated successfully, but these errors were encountered:
It should be checking for self in the same context as well.
self
Sorry, something went wrong.
The problem is that as of PHP 5.4, $this can be used in anonymous functions. So it might seem a bit silly to add a test for that now.
No branches or pull requests
It would be useful to have a sniff detecting
$this
in closures for PHP 5.3 compatibility.The text was updated successfully, but these errors were encountered: