Skip to content

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.

Copy link

commented Feb 23, 2018

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
You can’t perform that action at this time.