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.
1 parent 77dfaae commit 04d5365Copy full SHA for 04d5365
src/Builder/EnumBuilder.php
@@ -24,7 +24,7 @@ public static function create(string $name): self
24
/**
25
* @return $this
26
*/
27
- public function addValue(string $value, ?string $name = null, ?string $description = null): self
+ public function addValue(int|string $value, ?string $name = null, ?string $description = null): self
28
{
29
$name ??= $value;
30
if (preg_match(self::VALID_NAME_PATTERN, $name) !== 1) {
0 commit comments