Skip to content

Commit 5bbac1a

Browse files
Added AppVersion::is10x() method
1 parent 46e57f0 commit 5bbac1a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: src/Facades/AppVersion.php

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* @method static bool is7x()
1414
* @method static bool is8x()
1515
* @method static bool is9x()
16+
* @method static bool is10x()
1617
* @method static int major()
1718
* @method static int minor()
1819
* @method static int patch()

Diff for: src/Support/AppVersion.php

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ public function is9x(): bool
3030
return $this->major() === 9;
3131
}
3232

33+
public function is10x(): bool
34+
{
35+
return $this->major() === 10;
36+
}
37+
3338
public function major(): int
3439
{
3540
return (int) Str::before($this->version(), '.');

0 commit comments

Comments
 (0)