Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Check for PHP syntax errors for multiple files in a set of folders using PHP's "lint" option.

Syntax check php files in folders:

find ./foo ./bar \( -name "*.php" -or -name "*.phtml" \) -print0 | xargs -0 -n 1 php -l
@acro5piano

This comment has been minimized.

Show comment
Hide comment
@acro5piano

acro5piano Feb 23, 2018

Thanks!
I add -P8 and parallelly check PHP syntax on CI.

Thanks!
I add -P8 and parallelly check PHP syntax on CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment