diff --git a/.shellcheckrc b/.shellcheckrc new file mode 100644 index 00000000..b14745b8 --- /dev/null +++ b/.shellcheckrc @@ -0,0 +1,2 @@ +shell=bash +external-sources=true diff --git a/4dev/checking/phpunit.sh b/4dev/checking/phpunit.sh index 931afd11..e331bd6a 100755 --- a/4dev/checking/phpunit.sh +++ b/4dev/checking/phpunit.sh @@ -12,7 +12,7 @@ if [ "${1}" = "t" ] || [ "${2}" = "t" ]; then opt_testdox="--testdox"; fi; php_bin=""; -if [ ! -z "${1}" ]; then +if [ -n "${1}" ]; then case "${1}" in # "7.3") php_bin="/usr/bin/php7.3 "; ;; # "7.4") php_bin="/usr/bin/php7.4 "; ;; @@ -23,7 +23,7 @@ if [ ! -z "${1}" ]; then *) echo "Not support PHP: ${1}"; exit; ;; esac; fi; -if [ ! -z "${2}" ] && [ -z "${php_bin}" ]; then +if [ -n "${2}" ] && [ -z "${php_bin}" ]; then case "${2}" in # "7.3") php_bin="/usr/bin/php7.3 "; ;; # "7.4") php_bin="/usr/bin/php7.4 "; ;; diff --git a/phpstan.neon b/phpstan.neon index beb0e966..1e81ac4b 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,7 +2,7 @@ includes: - phpstan-conditional.php parameters: - tmpDir: /tmp/phpstan-corelibs + tmpDir: %currentWorkingDirectory%/tmp/phpstan-corelibs level: 8 # max is now 9 checkMissingCallableSignature: true treatPhpDocTypesAsCertain: false diff --git a/tmp/.gitignore b/tmp/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/tmp/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore