From d61eb746e36e9f8869c7199e24d8a9559c2ebc29 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 23 Jul 2024 18:43:10 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"Fix:=20Cast=20model=20key=20to=20inte?= =?UTF-8?q?ger=20to=20improve=20query=20performance=20on=20Postgr=E2=80=A6?= =?UTF-8?q?"=20(#526)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3f57a4cd069ad9442ab2082ffafa4f4186e41ce8. --- src/PersonalAccessToken.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/PersonalAccessToken.php b/src/PersonalAccessToken.php index 13e533d4..c9aa8916 100644 --- a/src/PersonalAccessToken.php +++ b/src/PersonalAccessToken.php @@ -63,10 +63,6 @@ public static function findToken($token) [$id, $token] = explode('|', $token, 2); - if ((new static())->getKeyType() === 'int') { - $id = (int) $id; - } - if ($instance = static::find($id)) { return hash_equals($instance->token, hash('sha256', $token)) ? $instance : null; }