Skip to content

Commit

Permalink
Constrain allowed types to InnerList
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Jan 14, 2024
1 parent 51c5128 commit efb1533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/StructuredFields/InnerList.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace Amp\Http\StructuredFields;

/**
* @psalm-import-type Rfc8941SingleItem from Rfc8941
* @psalm-import-type Rfc8941Parameters from Rfc8941
* @extends Item<list<Item<scalar>>>
*/
final class InnerList extends Item
{
/**
* @psalm-param list<Item<scalar>> $item
* @psalm-param list<Rfc8941SingleItem> $item
* @psalm-param Rfc8941Parameters $parameters
*/
public function __construct(array $item, array $parameters)
Expand Down

0 comments on commit efb1533

Please sign in to comment.