Skip to content

Commit 4fcc87d

Browse files
Merge pull request #166 from oliverklee/task/list
[TASK] Use `list` whereever possible
2 parents a7549f5 + 39849fa commit 4fcc87d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stubs/ObjectStorage.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ class ObjectStorage implements \Iterator, \ArrayAccess
4545
public function key();
4646

4747
/**
48-
* @return array<TEntity>
48+
* @return list<TEntity>
4949
*/
5050
public function toArray();
5151

5252
/**
53-
* @return array<TEntity>
53+
* @return list<TEntity>
5454
*/
5555
public function getArray();
5656

stubs/QueryResultInterface.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface QueryResultInterface extends \Countable, \Iterator, \ArrayAccess
1919
public function getFirst();
2020

2121
/**
22-
* @return ModelType[]
22+
* @return list<ModelType>
2323
*/
2424
public function toArray();
2525
}

0 commit comments

Comments
 (0)