From 5719b4230809aceae03764d6b40b9270a30ef361 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 16 Mar 2023 14:24:39 -0400 Subject: [PATCH] Fix method signature issue --- src/LoggerTrait.php | 4 +--- tests/TellerTest.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/LoggerTrait.php b/src/LoggerTrait.php index 49ca954..aa6eb8e 100644 --- a/src/LoggerTrait.php +++ b/src/LoggerTrait.php @@ -45,7 +45,7 @@ trait LoggerTrait { /** * Set a logger to keep track of errors */ - public function setLogger(LoggerInterface $logger): self + public function setLogger(LoggerInterface $logger): void { $this->logger = $logger; @@ -54,7 +54,5 @@ trait LoggerTrait { { $this->driver->setLogger($logger); } - - return $this; } } \ No newline at end of file diff --git a/tests/TellerTest.php b/tests/TellerTest.php index b10bbd1..ee20e64 100644 --- a/tests/TellerTest.php +++ b/tests/TellerTest.php @@ -222,7 +222,7 @@ class TellerTest extends TestCase { $this->teller->get($key); } - public function keyValidationTests(): array + public static function keyValidationTests(): array { // {}()/@:\\\ return [