diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index e375ce78..295214fd 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -20,11 +20,6 @@ parameters: count: 1 path: src/Client.php - - - message: "#^Method Vonage\\\\Client\\:\\:setLogger\\(\\) should return Vonage\\\\Logger\\\\LoggerAwareInterface but return statement is missing\\.$#" - count: 1 - path: src/Client.php - - message: "#^Unsafe usage of new static\\(\\)\\.$#" count: 1 diff --git a/src/Logger/LoggerAwareInterface.php b/src/Logger/LoggerAwareInterface.php index cb3dff51..6769f058 100644 --- a/src/Logger/LoggerAwareInterface.php +++ b/src/Logger/LoggerAwareInterface.php @@ -14,5 +14,5 @@ public function getLogger(): ?LoggerInterface; */ public function log(int|string $level, string $message, array $context = []): void; - public function setLogger(LoggerInterface $logger); + public function setLogger(LoggerInterface $logger): void; } diff --git a/src/Logger/LoggerTrait.php b/src/Logger/LoggerTrait.php index 3752d856..b21d210a 100644 --- a/src/Logger/LoggerTrait.php +++ b/src/Logger/LoggerTrait.php @@ -28,7 +28,7 @@ public function log(int|string $level, string $message, array $context = []): vo } } - public function setLogger(LoggerInterface $logger) + public function setLogger(LoggerInterface $logger): void { $this->logger = $logger; }