From 380cc0c6699fe10ba79ac6b952f4413ba12ce2e4 Mon Sep 17 00:00:00 2001 From: Jan Langer Date: Mon, 15 Nov 2021 20:36:24 +0100 Subject: [PATCH] Updated dev dependencies --- composer.json | 4 ++-- src/Driver/GuzzleSoapClientDriver.php | 2 +- tests/SlevomatEET/Cryptography/CryptographyServiceTest.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 48834d8..1c847f3 100644 --- a/composer.json +++ b/composer.json @@ -30,8 +30,8 @@ "guzzlehttp/guzzle": "^6.3.3 || ^7.0.1", "phing/phing": "^2.16.3", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan": "^0.12.37", - "phpstan/phpstan-phpunit": "^0.12.16", + "phpstan/phpstan": "^1.1.2", + "phpstan/phpstan-phpunit": "^1.0.0", "phpunit/phpunit": "^8.5.14 || ^9.3.7", "slevomat/coding-standard": "^6.3.10", "squizlabs/php_codesniffer": "^3.5.6" diff --git a/src/Driver/GuzzleSoapClientDriver.php b/src/Driver/GuzzleSoapClientDriver.php index b3beaf3..850f113 100644 --- a/src/Driver/GuzzleSoapClientDriver.php +++ b/src/Driver/GuzzleSoapClientDriver.php @@ -35,7 +35,7 @@ public function send(string $request, string $location, string $action, int $soa 'User-Agent' => self::HEADER_USER_AGENT, 'Content-Type' => sprintf('%s; charset=utf-8', $soapVersion === 2 ? 'application/soap+xml' : 'text/xml'), 'SOAPAction' => $action, - 'Content-Length' => strlen($request), + 'Content-Length' => (string) strlen($request), ]; $request = new Request('POST', $location, $headers, $request); diff --git a/tests/SlevomatEET/Cryptography/CryptographyServiceTest.php b/tests/SlevomatEET/Cryptography/CryptographyServiceTest.php index 186bcfb..f6ef033 100644 --- a/tests/SlevomatEET/Cryptography/CryptographyServiceTest.php +++ b/tests/SlevomatEET/Cryptography/CryptographyServiceTest.php @@ -46,7 +46,7 @@ public function testInvalidKeyPaths(string $privateKeyPath, string $publicKeyPat } /** - * @return array[] + * @return mixed[][] */ public function provideInvalidKeyPaths(): array {