mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-08 13:30:06 +01:00
🐛 Validate detected PHP version (#30)
This commit is contained in:
@@ -27,7 +27,7 @@ class Actions {
|
|||||||
versions.forEach { (string) in
|
versions.forEach { (string) in
|
||||||
let version = string.components(separatedBy: "php@")[1]
|
let version = string.components(separatedBy: "php@")[1]
|
||||||
// Only append the version if it doesn't already exist (avoid dupes)
|
// Only append the version if it doesn't already exist (avoid dupes)
|
||||||
if !versionsOnly.contains(version) {
|
if !versionsOnly.contains(version) && Constants.SupportedPhpVersions.contains(version) {
|
||||||
versionsOnly.append(version)
|
versionsOnly.append(version)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user