Question

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

Was it helpful?

Solution

Just run this:

 php -l filename

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top