Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/types/src/Flow/Types/DSL/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
/**
* @template T
*
* @param array<array-key, StructureElement<T>|Type<T>> $elements
* @param array<array-key, StructureElement<T, bool>|Type<T>> $elements
*
* @return StructureType<array<array-key, T>>
*/
Expand Down
10 changes: 5 additions & 5 deletions src/lib/types/src/Flow/Types/Type/Logical/StructureType.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
final readonly class StructureType implements Type
{
/**
* @var non-empty-list<StructureElement<value-of<T>>>
* @var non-empty-list<StructureElement<value-of<T>, bool>>
*/
private array $elements;

/**
* @param list<StructureElement<value-of<T>>> $elements
* @param list<StructureElement<value-of<T>, bool>> $elements
*
* @throws InvalidArgumentException
*/
Expand Down Expand Up @@ -82,7 +82,7 @@ public function __construct(array $elements)
/**
* @template E
*
* @param array<array-key, StructureElement<E>|Type<E>> $elements insertion order is field order; a StructureElement value carries its own optional flag
* @param array<array-key, StructureElement<E, bool>|Type<E>> $elements insertion order is field order; a StructureElement value carries its own optional flag
*
* @return self<array<array-key, E>>
*/
Expand Down Expand Up @@ -211,7 +211,7 @@ public function cast(mixed $value): array
}

/**
* @return null|StructureElement<value-of<T>>
* @return null|StructureElement<value-of<T>, bool>
*/
public function element(int|string $name): ?StructureElement
{
Expand All @@ -225,7 +225,7 @@ public function element(int|string $name): ?StructureElement
}

/**
* @return non-empty-list<StructureElement<value-of<T>>>
* @return non-empty-list<StructureElement<value-of<T>, bool>>
*/
public function elements(): array
{
Expand Down
2 changes: 1 addition & 1 deletion web/landing/resources/dsl.json

Large diffs are not rendered by default.

Loading