From c2d36e8b095e472bcdb77fe6d41bd9368b11c540 Mon Sep 17 00:00:00 2001 From: Refringe Date: Sun, 15 Sep 2024 23:46:02 -0400 Subject: [PATCH] Simplifies Expression Null not possible. --- app/Support/Version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Version.php b/app/Support/Version.php index 21c00cb..b96bae3 100644 --- a/app/Support/Version.php +++ b/app/Support/Version.php @@ -38,7 +38,7 @@ class Version // Regex to match semantic versioning, including pre-release identifiers if (preg_match('/^(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:-([\w.-]+))?$/', $this->version, $matches)) { - $this->major = (int) ($matches[1] ?? 0); + $this->major = (int) $matches[1]; $this->minor = (int) ($matches[2] ?? 0); $this->patch = (int) ($matches[3] ?? 0); $this->preRelease = $matches[4] ?? '';