We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AppVersion::is
1 parent de1d2d3 commit 052fd45Copy full SHA for 052fd45
src/Support/AppVersion.php
@@ -30,6 +30,11 @@ public function is9x(): bool
30
return $this->major() === 9;
31
}
32
33
+ public function is(string $version, string $comparator = '>='): bool
34
+ {
35
+ return version_compare($this->version(), $version, $comparator);
36
+ }
37
+
38
protected function major(): int
39
{
40
return (int) Str::before($this->version(), '.');
0 commit comments