Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 326 Bytes

php.md

File metadata and controls

10 lines (8 loc) · 326 Bytes

Search for errors in PHP files

find . -type f -iname "*.php" -not -path '*vendor*'  -exec php -l {}  \;

Finds all files ending with .php and checks them for syntax errors - only displays files with errors

 find . -iname '*.php' -exec php -l '{}' \; | grep '^No syntax errors' -v  | less