We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06cd98 commit f35e8ffCopy full SHA for f35e8ff
discovery_windows.go
@@ -60,14 +60,7 @@ func (s *PHPStore) doDiscover() {
60
61
func (s *PHPStore) addFromPath() {
62
63
- // Determine the executable name based on the operating system
64
- exeName := "php"
65
- if runtime.GOOS == "windows" {
66
- exeName = "php.exe"
67
- }
68
-
69
- // Alternative approach using exec.LookPath
70
- phpPath, err := exec.LookPath(exeName)
+ phpPath, err := exec.LookPath("php.exe")
71
if err != nil {
72
return
73
}
0 commit comments