File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -323,14 +323,15 @@ func normalizeVersion(v string) string {
323323
324324func (s * PHPStore ) pathDirectories (configDir string ) []string {
325325 phpShimDir := filepath .Join (configDir , "bin" )
326+ additionalPath := os .Getenv ("SYMFONY_CLI_PHP_PATH" )
326327 path := os .Getenv ("PATH" )
327328 if runtime .GOOS == "windows" {
328329 path = os .Getenv ("Path" )
329330 }
330331 user := os .Getenv ("USERPROFILE" )
331332 dirs := []string {}
332333 seen := make (map [string ]bool )
333- for _ , dir := range filepath .SplitList (path ) {
334+ for _ , dir := range filepath .SplitList (additionalPath + string ( filepath . ListSeparator ) + path ) {
334335 dir = strings .Replace (dir , "%%USERPROFILE%%" , user , 1 )
335336 edir , err := evalSymlinks (dir )
336337 if err != nil {
You can’t perform that action at this time.
0 commit comments