From 7462ab3086d76e290292c187c1886f2e01a78c76 Mon Sep 17 00:00:00 2001 From: Dumitru Uzun Date: Thu, 27 Apr 2017 01:26:32 +0300 Subject: [PATCH] static function hashToInt() --- lib/GoogleAuthenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GoogleAuthenticator.php b/lib/GoogleAuthenticator.php index 344c034..0d22e85 100644 --- a/lib/GoogleAuthenticator.php +++ b/lib/GoogleAuthenticator.php @@ -57,7 +57,7 @@ public function getCode($secret,$time = null) { return $pinValue; } - protected function hashToInt($bytes, $start) { + static protected function hashToInt($bytes, $start) { $input = substr($bytes, $start, strlen($bytes) - $start); $val2 = unpack("N",substr($input,0,4)); return $val2[1];