From 5bbac1ae39f8a1248257e7ea99898b1d23eb92db Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Thu, 8 Sep 2022 22:45:28 +0300 Subject: [PATCH] Added `AppVersion::is10x()` method --- src/Facades/AppVersion.php | 1 + src/Support/AppVersion.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/Facades/AppVersion.php b/src/Facades/AppVersion.php index f7e9cca..c6ed0e9 100644 --- a/src/Facades/AppVersion.php +++ b/src/Facades/AppVersion.php @@ -13,6 +13,7 @@ * @method static bool is7x() * @method static bool is8x() * @method static bool is9x() + * @method static bool is10x() * @method static int major() * @method static int minor() * @method static int patch() diff --git a/src/Support/AppVersion.php b/src/Support/AppVersion.php index 060c138..924944a 100644 --- a/src/Support/AppVersion.php +++ b/src/Support/AppVersion.php @@ -30,6 +30,11 @@ public function is9x(): bool return $this->major() === 9; } + public function is10x(): bool + { + return $this->major() === 10; + } + public function major(): int { return (int) Str::before($this->version(), '.');