Skip to content

Commit b3c0073

Browse files
committed
fix: ValueObjectTrait fix
1 parent 6995c78 commit b3c0073

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Util/ValueObjectTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ final protected static function list(array $values, string $key, string $class,
9494
* @param non-empty-string $key
9595
* @param class-string<T> $class
9696
* @param null|array<T> $allowedSubset Only some cases of the enum that are allowed
97+
*
98+
* @return \BackedEnum<T>
9799
*/
98100
final protected static function enum(array $values, string $key, string $class, ?\BackedEnum $default = null, ?array $allowedSubset = null): \BackedEnum
99101
{

0 commit comments

Comments
 (0)