Skip to content

Commit

Permalink
Merge pull request #77 from boesing/bugfix/ordered-list-to-native-arr…
Browse files Browse the repository at this point in the history
…ay-is-list

bugfix: optimize `OrderedListInterface::toNativeArray` annotation as it returns a list of values
  • Loading branch information
boesing authored Jun 7, 2021
2 parents 5bbdeb1 + 9513480 commit dd98bb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/OrderedListInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,9 @@ public function reverse(): self;
* @throws Error In case, the values are not `string` or {@see Stringable}.
*/
public function join(string $separator = ''): string;

/**
* @psalm-return list<TValue>
*/
public function toNativeArray(): array;
}

0 comments on commit dd98bb3

Please sign in to comment.