Is there something like PyFlakes for PHP? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this questionPretty straight forward question. I'm quite happy with my simple text editor but sometimes it'd be nice to run something like PyFlakes on my code before running to check for any obvious errors like undeclared variables or syntax errors.
The previous answer is wrong - the question is neither a duplicated nor does the given command do what "pyflakes" does.
"pyflakes" is a python project that integrates with Vim, and allows you to check for interpreter errors in your python code live (as you are coding).
However, i am not aware of any existing vim extension which replicates the functionality of pyflakes for PHP code.
Just run this:
php -l filename
精彩评论