From 14806b2ab00ce97467f01e546fc2f2af069ee552 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 5 Jun 2024 16:36:32 +1200 Subject: [PATCH] ENH Use class name instead of self --- src/CredentialRepository.php | 2 +- src/RegisterHandler.php | 4 ++-- src/VerifyHandler.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/CredentialRepository.php b/src/CredentialRepository.php index f6e01ce..a1bcd0c 100644 --- a/src/CredentialRepository.php +++ b/src/CredentialRepository.php @@ -189,7 +189,7 @@ public function toArray(): array * @param string $memberID * @return CredentialRepository */ - public static function fromArray(array $credentials, string $memberID): self + public static function fromArray(array $credentials, string $memberID): CredentialRepository { $new = new static($memberID); $new->setCredentials($credentials); diff --git a/src/RegisterHandler.php b/src/RegisterHandler.php index 64f2f50..9c5b2d2 100644 --- a/src/RegisterHandler.php +++ b/src/RegisterHandler.php @@ -72,9 +72,9 @@ class RegisterHandler implements RegisterHandlerInterface * Sets the {@see $logger} member variable * * @param LoggerInterface|null $logger - * @return self + * @return RegisterHandler */ - public function setLogger(?LoggerInterface $logger): self + public function setLogger(?LoggerInterface $logger): RegisterHandler { $this->logger = $logger; return $this; diff --git a/src/VerifyHandler.php b/src/VerifyHandler.php index 218750c..b420e06 100644 --- a/src/VerifyHandler.php +++ b/src/VerifyHandler.php @@ -47,9 +47,9 @@ class VerifyHandler implements VerifyHandlerInterface * Sets the {@see $logger} member variable * * @param LoggerInterface|null $logger - * @return self + * @return VerifyHandler */ - public function setLogger(?LoggerInterface $logger): self + public function setLogger(?LoggerInterface $logger): VerifyHandler { $this->logger = $logger; return $this;