We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 767e968 commit 2f04b3bCopy full SHA for 2f04b3b
1 file changed
phpvm.sh
@@ -3047,7 +3047,8 @@ if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
3047
elif [ -n "${ZSH_VERSION:-}" ]; then
3048
# Zsh: add to chpwd_functions array
3049
if [[ ! " ${chpwd_functions[*]:-} " =~ " phpvm_cd_hook " ]]; then
3050
- chpwd_functions=(phpvm_cd_hook ${chpwd_functions[@]:-})
+ # shellcheck disable=SC2206 # Intentional: chpwd_functions is a zsh array, word splitting is safe here
3051
+ chpwd_functions=(phpvm_cd_hook "${chpwd_functions[@]:-}")
3052
fi
3053
3054
0 commit comments