mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-31 12:43:14 +00:00
Add workaround for hhvm to avoid "Notice: File could not be loaded: ..."
This commit is contained in:
+8
-5
@@ -44,11 +44,14 @@ EOF
|
||||
)
|
||||
php --run "${script}" "${filename}"
|
||||
}
|
||||
export -f "find_invalid_indentation"
|
||||
invalid_indentation=$(find . -type "f" -iname "*.php" -exec bash -c 'find_invalid_indentation "{}"' \;)
|
||||
if [[ ! -z "${invalid_indentation}" ]]; then
|
||||
echo "${invalid_indentation}"
|
||||
exit 1
|
||||
# Skip hhvm "Notice: File could not be loaded: ..."
|
||||
if [[ "${TRAVIS_PHP_VERSION}" != "hhvm" ]]; then
|
||||
export -f "find_invalid_indentation"
|
||||
invalid_indentation=$(find . -type "f" -iname "*.php" -exec bash -c 'find_invalid_indentation "{}"' \;)
|
||||
if [[ ! -z "${invalid_indentation}" ]]; then
|
||||
echo "${invalid_indentation}"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Prohibit trailing whitespace in php files.
|
||||
|
||||
Reference in New Issue
Block a user