Skip to content

chore(deps): bump php-http/client-common from 2.3.0 to 2.5.0 #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
70 changes: 35 additions & 35 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Client/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function __construct($request)

/**
* Get the soap action for soap 1.1 and 1.2.
*
* @return string
*/
public function action(): string
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function clientError()
/**
* Execute the given callback if there was a server or client error.
*
* @param \Closure|callable $callback
* @param \Closure|callable $callback
* @return \CodeDredd\Soap\Client\Response
*/
public function onError(callable $callback)
Expand Down
1 change: 1 addition & 0 deletions src/Code/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Validation extends Base

/**
* Validation constructor.
*
* @param Service $engine
* @param $configName
* @param bool $dryRun
Expand Down
1 change: 0 additions & 1 deletion src/Exceptions/NotFoundConfigurationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class NotFoundConfigurationException extends RuntimeException
{
/**
* @param \Throwable $throwable
*
* @return NotFoundConfigurationException
*/
public static function fromThrowable(\Throwable $throwable): self
Expand Down
1 change: 0 additions & 1 deletion src/Exceptions/SoapException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class SoapException extends \RuntimeException
{
/**
* @param \Throwable $throwable
*
* @return SoapException
*/
public static function fromThrowable(\Throwable $throwable): self
Expand Down
1 change: 1 addition & 0 deletions src/Faker/EngineFaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class EngineFaker implements EngineInterface

/**
* EngineFaker constructor.
*
* @param DriverInterface $driver
* @param HandlerInterface $handler
* @param ExtSoapOptions $options
Expand Down
17 changes: 12 additions & 5 deletions src/HttpBinding/Builder/Psr7RequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public function __construct(MessageFactory $messageFactory, StreamFactory $strea

/**
* @return RequestInterface
*
* @throws RequestException
*/
public function getHttpRequest(): RequestInterface
Expand All @@ -89,15 +90,15 @@ public function getHttpRequest(): RequestInterface
}

/**
* @param string $endpoint
* @param string $endpoint
*/
public function setEndpoint(string $endpoint)
{
$this->endpoint = $endpoint;
}

/**
* @param array $headers
* @param array $headers
*/
public function setHeaders(array $headers)
{
Expand All @@ -121,15 +122,15 @@ public function isSOAP12()
}

/**
* @param string $soapAction
* @param string $soapAction
*/
public function setSoapAction(string $soapAction)
{
$this->soapAction = $soapAction;
}

/**
* @param string $content
* @param string $content
*/
public function setSoapMessage(string $content)
{
Expand All @@ -138,7 +139,7 @@ public function setSoapMessage(string $content)
}

/**
* @param string $method
* @param string $method
*/
public function setHttpMethod(string $method)
{
Expand All @@ -147,6 +148,7 @@ public function setHttpMethod(string $method)

/**
* @return void
*
* @throws \Phpro\SoapClient\Exception\RequestException
*/
private function validate()
Expand All @@ -161,6 +163,7 @@ private function validate()

/**
* SOAP 1.1 only defines HTTP binding with POST method.
*
* @link https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383527
*/
if ($this->soapVersion === self::SOAP11 && $this->httpMethod !== 'POST') {
Expand All @@ -169,6 +172,7 @@ private function validate()

/**
* SOAP 1.2 only defines HTTP binding with POST and GET methods.
*
* @link https://www.w3.org/TR/2007/REC-soap12-part0-20070427/#L10309
*/
if ($this->soapVersion === self::SOAP12 && ! in_array($this->httpMethod, ['GET', 'POST'])) {
Expand All @@ -190,6 +194,7 @@ private function prepareHeaders(): array

/**
* @link https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383526
*
* @return array
*/
private function prepareSoap11Headers(): array
Expand All @@ -205,7 +210,9 @@ private function prepareSoap11Headers(): array
/**
* SOAPAction header is removed in SOAP 1.2 and now expressed as a value of
* an (optional) "action" parameter of the "application/soap+xml" media type.
*
* @link https://www.w3.org/TR/soap12-part0/#L4697
*
* @return array
*/
private function prepareSoap12Headers(): array
Expand Down
4 changes: 1 addition & 3 deletions src/HttpBinding/Converter/Psr7Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public function __construct(MessageFactory $messageFactory, StreamFactory $strea
/**
* @param SoapRequest $request
* @param array $requestHeaders
*
* @return RequestInterface
*/
public function convertSoapRequest(SoapRequest $request, $requestHeaders = []): RequestInterface
Expand All @@ -51,8 +50,7 @@ public function convertSoapRequest(SoapRequest $request, $requestHeaders = []):
}

/**
* @param ResponseInterface $response
*
* @param ResponseInterface $response
* @return SoapResponse
*/
public function convertSoapResponse(ResponseInterface $response): SoapResponse
Expand Down
Loading