Skip to content

Commit

Permalink
IDataSource::getData returns iterable instead array
Browse files Browse the repository at this point in the history
  • Loading branch information
AliAmjid authored and paveljanda committed Apr 26, 2021
1 parent 62089e9 commit 1dd1de2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DataModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function filterData(
?DataGridPaginator $paginatorComponent,
Sorting $sorting,
array $filters
): array
): iterable
{
$this->onBeforeFilter($this->dataSource);

Expand Down
2 changes: 1 addition & 1 deletion src/DataSource/IDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function getCount(): int;
/**
* Get the data
*/
public function getData(): array;
public function getData(): iterable;

/**
* Filter data
Expand Down

0 comments on commit 1dd1de2

Please sign in to comment.