diff --git a/src/Utils/Curl/MessageTrait.php b/src/Utils/Curl/MessageTrait.php index b7419f21..9a77ffaa 100644 --- a/src/Utils/Curl/MessageTrait.php +++ b/src/Utils/Curl/MessageTrait.php @@ -78,10 +78,7 @@ public function withAddedHeader($name, $value): static private function createBody($body = ''): StreamInterface { - $oldErrorReporting = error_reporting(); - error_reporting(0); $resource = fopen('php://temp', 'rw+'); - error_reporting($oldErrorReporting); if ($resource === false) { throw new CurlRequestException('Unable to open stream'); }