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:
@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user