mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 12:00:09 +02:00
🐛 Validate detected PHP version (#30)
This commit is contained in:
@ -27,7 +27,7 @@ class Actions {
|
||||
versions.forEach { (string) in
|
||||
let version = string.components(separatedBy: "php@")[1]
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user