Skip to content

Commit

Permalink
Properly support empty response content
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Sep 8, 2022
1 parent 2b2a0c5 commit 4b37c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camel/Extraction/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Response extends BaseDTO

public function __construct(array $parameters = [])
{
if (is_array($parameters['content'])) {
if (is_array($parameters['content'] ?? null)) {
$parameters['content'] = json_encode($parameters['content']);
}

Expand Down

0 comments on commit 4b37c2a

Please sign in to comment.