Skip to content

Commit d29a546

Browse files
committed
Do not use StreamInterface::getContents()
1 parent 5381a47 commit d29a546

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Extractor/Extractor.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ abstract class Extractor
1515
public function __construct(MessageInterface $message)
1616
{
1717
$body = $message->getBody();
18-
$this->messageContents = json_decode($body->getContents(), true);
19-
20-
if (! $body->isSeekable()) {
21-
return;
22-
}
23-
24-
$body->rewind();
18+
$this->messageContents = json_decode((string) $body, true);
2519
}
2620
}

0 commit comments

Comments
 (0)