We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a07563 commit 47996eaCopy full SHA for 47996ea
cli/Valet/PhpFpm.php
@@ -112,6 +112,20 @@ public function changeVersion($version = null)
112
info('Changing version failed');
113
throw $exception;
114
}
115
+
116
+ $this->updateCliVersion();
117
+ }
118
119
+ /**
120
+ * Update the PHP CLI version.
121
+ *
122
+ * @return void
123
+ */
124
+ protected function updateCliVersion()
125
+ {
126
+ $path = $this->cli->run("which php{$this->version}");
127
128
+ $this->cli->run("update-alternatives --set php $path");
129
130
131
/**
0 commit comments