You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// look for an exact match, the order does not matter here
154
+
for_, v:=ranges.versions {
155
+
ifv.Version==versionPrefix {
156
+
returnv, source, "", nil
157
+
}
158
+
}
159
+
160
+
// exact match not found, fallback to minor version check
161
+
newVersionPrefix:=versionPrefix[:pos]
162
+
warning=fmt.Sprintf(`the current dir requires PHP %s (%s), but this version is not available: fallback to %s`, versionPrefix, source, newVersionPrefix)
163
+
versionPrefix=newVersionPrefix
164
+
}
165
+
144
166
// start from the end as versions are always sorted
0 commit comments