Skip to content

Commit

Permalink
Fix logger phpstan baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondeJK committed Sep 24, 2024
1 parent 01d544a commit e56544f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Logger/LoggerAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion src/Logger/LoggerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e56544f

Please sign in to comment.