Skip to content

Commit

Permalink
Fix order in which we look up for Composer
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 25, 2022
1 parent 01c919f commit bd06f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/php/composer.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func composerVersion() int {
}

func findComposer(extraBin string) (string, error) {
for _, file := range []string{extraBin, "composer.phar", "composer"} {
for _, file := range []string{extraBin, "composer", "composer.phar"} {
if pharPath, _ := LookPath(file); pharPath != "" {
// On Windows, we don't want the .bat, but the real composer phar/PHP file
if strings.HasSuffix(pharPath, ".bat") {
Expand Down

0 comments on commit bd06f2f

Please sign in to comment.