diff --git a/composer.lock b/composer.lock index d2a57f0..94cfdc1 100644 --- a/composer.lock +++ b/composer.lock @@ -1405,16 +1405,16 @@ }, { "name": "php-http/client-common", - "version": "2.3.0", + "version": "2.5.0", "source": { "type": "git", "url": "https://github.com/php-http/client-common.git", - "reference": "e37e46c610c87519753135fb893111798c69076a" + "reference": "d135751167d57e27c74de674d6a30cef2dc8e054" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/client-common/zipball/e37e46c610c87519753135fb893111798c69076a", - "reference": "e37e46c610c87519753135fb893111798c69076a", + "url": "https://api.github.com/repos/php-http/client-common/zipball/d135751167d57e27c74de674d6a30cef2dc8e054", + "reference": "d135751167d57e27c74de674d6a30cef2dc8e054", "shasum": "" }, "require": { @@ -1425,14 +1425,14 @@ "psr/http-client": "^1.0", "psr/http-factory": "^1.0", "psr/http-message": "^1.0", - "symfony/options-resolver": "^2.6 || ^3.4.20 || ~4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0", + "symfony/options-resolver": "~4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0 || ^6.0", "symfony/polyfill-php80": "^1.17" }, "require-dev": { "doctrine/instantiator": "^1.1", "guzzlehttp/psr7": "^1.4", "nyholm/psr7": "^1.2", - "phpspec/phpspec": "^5.1 || ^6.0", + "phpspec/phpspec": "^5.1 || ^6.3 || ^7.1", "phpspec/prophecy": "^1.10.2", "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.3" }, @@ -1474,9 +1474,9 @@ ], "support": { "issues": "https://github.com/php-http/client-common/issues", - "source": "https://github.com/php-http/client-common/tree/2.3.0" + "source": "https://github.com/php-http/client-common/tree/2.5.0" }, - "time": "2020-07-21T10:04:13+00:00" + "time": "2021-11-26T15:01:24+00:00" }, { "name": "php-http/discovery", @@ -1672,16 +1672,16 @@ }, { "name": "php-http/message", - "version": "1.11.1", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/php-http/message.git", - "reference": "887734d9c515ad9a564f6581a682fff87a6253cc" + "reference": "39eb7548be982a81085fe5a6e2a44268cd586291" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/message/zipball/887734d9c515ad9a564f6581a682fff87a6253cc", - "reference": "887734d9c515ad9a564f6581a682fff87a6253cc", + "url": "https://api.github.com/repos/php-http/message/zipball/39eb7548be982a81085fe5a6e2a44268cd586291", + "reference": "39eb7548be982a81085fe5a6e2a44268cd586291", "shasum": "" }, "require": { @@ -1740,9 +1740,9 @@ ], "support": { "issues": "https://github.com/php-http/message/issues", - "source": "https://github.com/php-http/message/tree/1.11.1" + "source": "https://github.com/php-http/message/tree/1.12.0" }, - "time": "2021-05-24T18:11:08+00:00" + "time": "2021-08-29T09:13:12+00:00" }, { "name": "php-http/message-factory", @@ -2921,16 +2921,16 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v2.4.0", + "version": "v2.5.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627" + "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627", - "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/6f981ee24cf69ee7ce9736146d1c57c2780598a8", + "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8", "shasum": "" }, "require": { @@ -2939,7 +2939,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.4-dev" + "dev-main": "2.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -2968,7 +2968,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.0" }, "funding": [ { @@ -2984,7 +2984,7 @@ "type": "tidelift" } ], - "time": "2021-03-23T23:28:01+00:00" + "time": "2021-07-12T14:48:14+00:00" }, { "name": "symfony/error-handler", @@ -4326,16 +4326,16 @@ }, { "name": "symfony/polyfill-php73", - "version": "v1.22.1", + "version": "v1.23.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2" + "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/a678b42e92f86eca04b7fa4c0f6f19d097fb69e2", - "reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fba8933c384d6476ab14fb7b8526e5287ca7e010", + "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010", "shasum": "" }, "require": { @@ -4344,7 +4344,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.22-dev" + "dev-main": "1.23-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4385,7 +4385,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.22.1" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.23.0" }, "funding": [ { @@ -4401,20 +4401,20 @@ "type": "tidelift" } ], - "time": "2021-01-07T16:49:33+00:00" + "time": "2021-02-19T12:13:01+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.22.1", + "version": "v1.23.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91" + "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dc3063ba22c2a1fd2f45ed856374d79114998f91", - "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be", + "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be", "shasum": "" }, "require": { @@ -4423,7 +4423,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.22-dev" + "dev-main": "1.23-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4468,7 +4468,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.22.1" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1" }, "funding": [ { @@ -4484,7 +4484,7 @@ "type": "tidelift" } ], - "time": "2021-01-07T16:49:33+00:00" + "time": "2021-07-28T13:41:28+00:00" }, { "name": "symfony/process", diff --git a/src/Client/Request.php b/src/Client/Request.php index 7aaf831..4279139 100644 --- a/src/Client/Request.php +++ b/src/Client/Request.php @@ -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 diff --git a/src/Client/Response.php b/src/Client/Response.php index 1efc356..d7abdfa 100644 --- a/src/Client/Response.php +++ b/src/Client/Response.php @@ -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) diff --git a/src/Code/Validation.php b/src/Code/Validation.php index b62fd74..e1fe537 100644 --- a/src/Code/Validation.php +++ b/src/Code/Validation.php @@ -31,6 +31,7 @@ class Validation extends Base /** * Validation constructor. + * * @param Service $engine * @param $configName * @param bool $dryRun diff --git a/src/Exceptions/NotFoundConfigurationException.php b/src/Exceptions/NotFoundConfigurationException.php index 5600391..8f75b67 100644 --- a/src/Exceptions/NotFoundConfigurationException.php +++ b/src/Exceptions/NotFoundConfigurationException.php @@ -8,7 +8,6 @@ class NotFoundConfigurationException extends RuntimeException { /** * @param \Throwable $throwable - * * @return NotFoundConfigurationException */ public static function fromThrowable(\Throwable $throwable): self diff --git a/src/Exceptions/SoapException.php b/src/Exceptions/SoapException.php index 85596a7..1839dcf 100644 --- a/src/Exceptions/SoapException.php +++ b/src/Exceptions/SoapException.php @@ -9,7 +9,6 @@ class SoapException extends \RuntimeException { /** * @param \Throwable $throwable - * * @return SoapException */ public static function fromThrowable(\Throwable $throwable): self diff --git a/src/Faker/EngineFaker.php b/src/Faker/EngineFaker.php index 0384499..7a755c8 100644 --- a/src/Faker/EngineFaker.php +++ b/src/Faker/EngineFaker.php @@ -35,6 +35,7 @@ class EngineFaker implements EngineInterface /** * EngineFaker constructor. + * * @param DriverInterface $driver * @param HandlerInterface $handler * @param ExtSoapOptions $options diff --git a/src/HttpBinding/Builder/Psr7RequestBuilder.php b/src/HttpBinding/Builder/Psr7RequestBuilder.php index 3494030..5def12e 100644 --- a/src/HttpBinding/Builder/Psr7RequestBuilder.php +++ b/src/HttpBinding/Builder/Psr7RequestBuilder.php @@ -66,6 +66,7 @@ public function __construct(MessageFactory $messageFactory, StreamFactory $strea /** * @return RequestInterface + * * @throws RequestException */ public function getHttpRequest(): RequestInterface @@ -89,7 +90,7 @@ public function getHttpRequest(): RequestInterface } /** - * @param string $endpoint + * @param string $endpoint */ public function setEndpoint(string $endpoint) { @@ -97,7 +98,7 @@ public function setEndpoint(string $endpoint) } /** - * @param array $headers + * @param array $headers */ public function setHeaders(array $headers) { @@ -121,7 +122,7 @@ public function isSOAP12() } /** - * @param string $soapAction + * @param string $soapAction */ public function setSoapAction(string $soapAction) { @@ -129,7 +130,7 @@ public function setSoapAction(string $soapAction) } /** - * @param string $content + * @param string $content */ public function setSoapMessage(string $content) { @@ -138,7 +139,7 @@ public function setSoapMessage(string $content) } /** - * @param string $method + * @param string $method */ public function setHttpMethod(string $method) { @@ -147,6 +148,7 @@ public function setHttpMethod(string $method) /** * @return void + * * @throws \Phpro\SoapClient\Exception\RequestException */ private function validate() @@ -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') { @@ -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'])) { @@ -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 @@ -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 diff --git a/src/HttpBinding/Converter/Psr7Converter.php b/src/HttpBinding/Converter/Psr7Converter.php index 72b8164..d675ad2 100644 --- a/src/HttpBinding/Converter/Psr7Converter.php +++ b/src/HttpBinding/Converter/Psr7Converter.php @@ -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 @@ -51,8 +50,7 @@ public function convertSoapRequest(SoapRequest $request, $requestHeaders = []): } /** - * @param ResponseInterface $response - * + * @param ResponseInterface $response * @return SoapResponse */ public function convertSoapResponse(ResponseInterface $response): SoapResponse diff --git a/src/Middleware/CisDhlMiddleware.php b/src/Middleware/CisDhlMiddleware.php index 7e2026e..2b2159d 100644 --- a/src/Middleware/CisDhlMiddleware.php +++ b/src/Middleware/CisDhlMiddleware.php @@ -37,9 +37,8 @@ public function getName(): string } /** - * @param callable $handler - * @param RequestInterface $request - * + * @param callable $handler + * @param RequestInterface $request * @return Promise */ public function beforeRequest(callable $handler, RequestInterface $request): Promise @@ -68,8 +67,7 @@ public function beforeRequest(callable $handler, RequestInterface $request): Pro } /** - * @param ResponseInterface $response - * + * @param ResponseInterface $response * @return ResponseInterface */ public function afterResponse(ResponseInterface $response): ResponseInterface diff --git a/src/SoapClient.php b/src/SoapClient.php index 2e1c3ad..6ab0e35 100644 --- a/src/SoapClient.php +++ b/src/SoapClient.php @@ -381,6 +381,7 @@ public function call(string $method, $arguments = []): Response * * @param string $setup * @return SoapClient + * * @throws NotFoundConfigurationException */ public function buildClient(string $setup = '') @@ -398,6 +399,7 @@ public function buildClient(string $setup = '') /** * @param string $setup * @return $this + * * @throws NotFoundConfigurationException */ public function byConfig(string $setup) diff --git a/src/SoapFactory.php b/src/SoapFactory.php index dcf8637..fdc2dcc 100644 --- a/src/SoapFactory.php +++ b/src/SoapFactory.php @@ -272,7 +272,7 @@ public function client() /** * Set the client class name. * - * @param string $clientClass + * @param string $clientClass */ public static function useClientClass(string $clientClass): void { diff --git a/src/Types/Service.php b/src/Types/Service.php index 9202da1..bcde273 100644 --- a/src/Types/Service.php +++ b/src/Types/Service.php @@ -29,8 +29,7 @@ public function getOperations() /** * Returns an operation provided by the service based on its name. * - * @param string $operationName the name of the operation - * + * @param string $operationName the name of the operation * @return Operation|null the operation or null if it does not exist */ public function getOperation($operationName) @@ -41,7 +40,7 @@ public function getOperation($operationName) /** * Add an operation to the service. * - * @param Operation $operation the operation to be added + * @param Operation $operation the operation to be added */ public function addOperation(Operation $operation) { diff --git a/src/Xml/XMLSerializer.php b/src/Xml/XMLSerializer.php index 08e5b00..ca328bd 100644 --- a/src/Xml/XMLSerializer.php +++ b/src/Xml/XMLSerializer.php @@ -15,7 +15,7 @@ class XMLSerializer /** * Recursive function to turn a DOMDocument element to an array. * - * @param DOMDocument|DomNode $node the document (might also be a DOMElement/DOMNode?) + * @param DOMDocument|DomNode $node the document (might also be a DOMElement/DOMNode?) * @return array */ public static function domNodeToArray($node) diff --git a/tests/TestCase.php b/tests/TestCase.php index 5bb49f9..07e67df 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -10,6 +10,7 @@ abstract class TestCase extends OrchestraTestCase { /** * Load package service provider. + * * @param \Illuminate\Foundation\Application $app * @return string[] */ @@ -20,7 +21,8 @@ protected function getPackageProviders($app) /** * Load package alias. - * @param \Illuminate\Foundation\Application $app + * + * @param \Illuminate\Foundation\Application $app * @return array */ protected function getPackageAliases($app) diff --git a/tests/Unit/SoapClientTest.php b/tests/Unit/SoapClientTest.php index f4e8584..5b879ed 100644 --- a/tests/Unit/SoapClientTest.php +++ b/tests/Unit/SoapClientTest.php @@ -103,6 +103,7 @@ public function testSequenceFake() /** * @dataProvider soapActionProvider + * * @param $action * @param $fake * @param $exspected @@ -177,6 +178,7 @@ public function testRealSoapCall(): void /** * @dataProvider soapHeaderProvider + * * @param $header * @param $exspected */