Skip to content

Commit

Permalink
results are newly wrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kurowski committed Jan 11, 2022
1 parent 3d99067 commit 92c1268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BisClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public function getEvents(?EventParameters $params = null): array
return [];
}

\assert(\is_array($data));
return \array_map(Event::class . '::fromResponseData', $data);
\assert(\is_array($data->results));
return \array_map(Event::class . '::fromResponseData', $data->results);
}


Expand Down

0 comments on commit 92c1268

Please sign in to comment.