Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert: revert condition change
Reverted the condition to what it was:
(!$body->isSeekable() || $body->getSize())

Why?, I need to understand better what is the usage of this condition before changing. It was breaking some integ tests.
  • Loading branch information
yenfryherrerafeliz committed Nov 20, 2025
commit ee873c7b4697ade07596efe704b1baa65facfcdc
2 changes: 1 addition & 1 deletion src/Api/Parser/AbstractRestParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __invoke(

$body = $response->getBody();
if (!$payload
&& (!$body->isSeekable() || !$body->getSize())
&& (!$body->isSeekable() || $body->getSize())
&& count($output->getMembers()) > 0
) {
// if no payload was found, then parse the contents of the body
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Parser/QueryParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __invoke(
) {
$output = $this->api->getOperation($command->getName())->getOutput();
$body = $response->getBody();
$xml = (!$body->isSeekable() || !$body->getSize())
$xml = (!$body->isSeekable() || $body->getSize())
? $this->parseXml($body, $response)
: null;

Expand Down
Loading