diff --git a/check_syntax.sh b/check_syntax.sh new file mode 100755 index 00000000..2f12eaf2 --- /dev/null +++ b/check_syntax.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +for FILE in $(find "$DIR" -name '*.php'); do + php7.0 -l $FILE +done