Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #50 from 21TORR/next
Browse files Browse the repository at this point in the history
Fix missing exception in `PrismicApi` on empty response.
  • Loading branch information
apfelbox authored Jun 14, 2023
2 parents ebf3aa7 + 3198ae6 commit 64b8c26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
6.3.6
=====

* (bug) Fix missing exception in `PrismicApi` on empty response.


6.3.5
=====

Expand Down
2 changes: 1 addition & 1 deletion src/Api/PrismicApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private function performRequest (callable $requestCallable, array $debugParamete
{
$response = $requestCallable();

return "" !== $response->getContent(false)
return "" !== $response->getContent()
? $response->toArray()
: [];
}
Expand Down

0 comments on commit 64b8c26

Please sign in to comment.