1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 03:50:08 +02:00

Correctly parse pre-release PHP versions

This commit is contained in:
2022-10-21 19:27:31 +02:00
parent 04ed29bc9f
commit 1ece5c34bf

View File

@ -90,7 +90,8 @@ class ActivePhpInstallation {
let output = Command.execute(path: Paths.phpConfig, arguments: ["--version"], trimNewlines: true)
self.hasErrorState = (output == "" || output.contains("Warning") || output.contains("Error"))
self.version = PhpVersionNumber.make(from: output)
self.version = try! PhpVersionNumber.parse(output)
}
/**