Skip to content

Commit af660b6

Browse files
authored
Fix node project get list return type (#615)
* make nodeproject get list return not only arrays * change php doc definition of getList function
1 parent f3af8a7 commit af660b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Goteo/Model/Node/NodeProject.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ static public function get($id): NodeProject
2525
}
2626

2727
/**
28-
* @return NodeProject[]
28+
* @return NodeProject[] | int
2929
*/
30-
static public function getList(array $filters = [], int $offset = 0, int $limit = 10, bool $count = false, string $lang = null): array
30+
static public function getList(array $filters = [], int $offset = 0, int $limit = 10, bool $count = false, string $lang = null)
3131
{
3232
$filter = [];
3333
$values = [];

0 commit comments

Comments
 (0)