Skip to content

Commit ba734e8

Browse files
authored
Fix the generated param types for maps and lists (#1466)
The constructor are not enforcing the usage of value objects. They also support passing an array accepted by the create method.
1 parent badd1ec commit ba734e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ValueObject/AppliedTerminology.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class AppliedTerminology
2424
/**
2525
* @param array{
2626
* Name?: null|string,
27-
* Terms?: null|Term[],
27+
* Terms?: null|array<Term|array>,
2828
* } $input
2929
*/
3030
public function __construct(array $input)
@@ -36,7 +36,7 @@ public function __construct(array $input)
3636
/**
3737
* @param array{
3838
* Name?: null|string,
39-
* Terms?: null|Term[],
39+
* Terms?: null|array<Term|array>,
4040
* }|AppliedTerminology $input
4141
*/
4242
public static function create($input): self

0 commit comments

Comments
 (0)