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

🐛 Fix version parsing (#227)

This commit is contained in:
2023-01-30 19:19:01 +01:00
parent ff2eff2a75
commit 6d89f94c92

View File

@@ -256,7 +256,7 @@ class Startup {
.components(separatedBy: "Laravel Valet")[1] .components(separatedBy: "Laravel Valet")[1]
.trimmingCharacters(in: .whitespaces) .trimmingCharacters(in: .whitespaces)
// Extract the version number // Extract the version number
Valet.shared.version = try! VersionNumber.parse(VersionExtractor.from(output)!) Valet.shared.version = try! VersionNumber.parse(VersionExtractor.from(versionString)!)
// Get the actual version // Get the actual version
return Valet.shared.version == nil return Valet.shared.version == nil
}, },