1
0
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:
2021-04-01 00:18:33 +02:00
parent c2585f9bf4
commit 3085158b80

View File

@ -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)
}
}