diff --git a/valet b/valet index 186573c5..a6907094 100755 --- a/valet +++ b/valet @@ -140,9 +140,9 @@ elif [[ "$1" = "php" ]] then if [[ $2 == *"--site="* ]]; then SITE=${2#*=} - $(php "$DIR/cli/valet.php" which-php $SITE) "${@:3}" + $("$PHP" "$DIR/cli/valet.php" which-php $SITE) "${@:3}" else - $(php "$DIR/cli/valet.php" which-php) "${@:2}" + $("$PHP" "$DIR/cli/valet.php" which-php) "${@:2}" fi exit @@ -152,9 +152,9 @@ elif [[ "$1" = "composer" ]] then if [[ $2 == *"--site="* ]]; then SITE=${2#*=} - $(php "$DIR/cli/valet.php" which-php $SITE) $(which composer) "${@:3}" + $("$PHP" "$DIR/cli/valet.php" which-php $SITE) $(which composer) "${@:3}" else - $(php "$DIR/cli/valet.php" which-php) $(which composer) "${@:2}" + $("$PHP" "$DIR/cli/valet.php" which-php) $(which composer) "${@:2}" fi exit