diff --git a/composer.json b/composer.json index e1e7630..4f0c552 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,7 @@ "ext-dom": "*", "ext-simplexml": "*", "guzzlehttp/guzzle": "^6.0 || ^7.0", - "psr/log": "^1.0" + "psr/log": "^1.0 || ^2.0 || ^3.0" }, "require-dev": { "phpunit/phpunit": "^9.5.4" diff --git a/src/Request.php b/src/Request.php index 0033a2b..aff9886 100644 --- a/src/Request.php +++ b/src/Request.php @@ -60,7 +60,7 @@ public function __construct(LoggerInterface $logger = null) * * @return null */ - public function setLogger(LoggerInterface $logger) + public function setLogger(LoggerInterface $logger): void { $this->logger = $logger; } diff --git a/src/SoapRequest.php b/src/SoapRequest.php index dd565a9..3b996ae 100644 --- a/src/SoapRequest.php +++ b/src/SoapRequest.php @@ -52,7 +52,7 @@ public function __construct(LoggerInterface $logger = null) * * @return null */ - public function setLogger(LoggerInterface $logger) + public function setLogger(LoggerInterface $logger): void { $this->logger = $logger; } diff --git a/src/Ups.php b/src/Ups.php index 52e04a8..be9eefc 100644 --- a/src/Ups.php +++ b/src/Ups.php @@ -94,7 +94,7 @@ public function setContext($context) /** * @param LoggerInterface $logger */ - public function setLogger(LoggerInterface $logger) + public function setLogger(LoggerInterface $logger): void { $this->logger = $logger; }