Skip to content

Commit 04d5365

Browse files
committed
fix: allow enum int values
1 parent 77dfaae commit 04d5365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builder/EnumBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function create(string $name): self
2424
/**
2525
* @return $this
2626
*/
27-
public function addValue(string $value, ?string $name = null, ?string $description = null): self
27+
public function addValue(int|string $value, ?string $name = null, ?string $description = null): self
2828
{
2929
$name ??= $value;
3030
if (preg_match(self::VALID_NAME_PATTERN, $name) !== 1) {

0 commit comments

Comments
 (0)