Skip to content

Commit dd98bb3

Browse files
authored
Merge pull request #77 from boesing/bugfix/ordered-list-to-native-array-is-list
bugfix: optimize `OrderedListInterface::toNativeArray` annotation as it returns a list of values
2 parents 5bbdeb1 + 9513480 commit dd98bb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/OrderedListInterface.php

+5
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,9 @@ public function reverse(): self;
145145
* @throws Error In case, the values are not `string` or {@see Stringable}.
146146
*/
147147
public function join(string $separator = ''): string;
148+
149+
/**
150+
* @psalm-return list<TValue>
151+
*/
152+
public function toNativeArray(): array;
148153
}

0 commit comments

Comments
 (0)