From 9e32fd01977f26e9d586f931f2e2ca0bfb883297 Mon Sep 17 00:00:00 2001
From: Anthony Ryan <anthonyryan1@gmail.com>
Date: Sat, 16 Jul 2022 11:05:24 -0400
Subject: [PATCH] [RFC] TOTP doesn't match TOTPInterface (#160)

self returned by TOTP create method
---
 src/TOTP.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/TOTP.php b/src/TOTP.php
index 316ccb5..18b48a8 100644
--- a/src/TOTP.php
+++ b/src/TOTP.php
@@ -21,7 +21,7 @@ final class TOTP extends OTP implements TOTPInterface
         string $digest = 'sha1',
         int $digits = 6,
         int $epoch = 0
-    ): TOTPInterface {
+    ): self {
         return new self($secret, $period, $digest, $digits, $epoch);
     }
 
-- 
GitLab