diff --git a/src/TOTP.php b/src/TOTP.php
index 316ccb5e76a3c15da1bf5e82e487cef4df6b5ef2..18b48a8bae5669c5644ee81f76ad305f76aaaa08 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);
     }