Skip to content

Commit 1137615

Browse files
committed
feat: add 3.x support
1 parent b6928bb commit 1137615

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Web/Documentation/Version.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ enum Version: string
1010

1111
case VERSION_1 = '1.x';
1212
case VERSION_2 = '2.x';
13+
case VERSION_3 = '3.x';
1314

1415
public static function default(): self
1516
{
@@ -19,7 +20,7 @@ public static function default(): self
1920
public function isNext(): bool
2021
{
2122
return match ($this) {
22-
// self::VERSION_3 => true,
23+
self::VERSION_3 => true,
2324
default => false,
2425
};
2526
}
@@ -29,6 +30,7 @@ public function getBranch(): string
2930
return match ($this) {
3031
self::VERSION_1 => '1.x',
3132
self::VERSION_2 => 'main',
33+
self::VERSION_3 => '3.x',
3234
};
3335
}
3436

0 commit comments

Comments
 (0)