Skip to content

Commit 06c6ee1

Browse files
Adjust environment detection order
1 parent 1e41264 commit 06c6ee1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/support/php.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ const getPhpCommand = (): string => {
107107
command: `"{binaryPath}"`,
108108
});
109109

110-
options.set("local", {
111-
check: "php -r 'echo PHP_BINARY;'",
112-
command: `"{binaryPath}"`,
113-
});
114-
115110
options.set("sail", {
116111
check: "./vendor/bin/sail ps",
117112
command: "./vendor/bin/sail php",
@@ -122,6 +117,11 @@ const getPhpCommand = (): string => {
122117
command: "lando ssh -c 'php {code}'",
123118
});
124119

120+
options.set("local", {
121+
check: "php -r 'echo PHP_BINARY;'",
122+
command: `"{binaryPath}"`,
123+
});
124+
125125
for (const [key, option] of options.entries()) {
126126
if (phpEnv !== "auto" && phpEnv !== key) {
127127
continue;

0 commit comments

Comments
 (0)