Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link

@acro5piano acro5piano commented Feb 23, 2018

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