From 192618b890cf4de626fef5f9e7f3c3d7730811bc Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Thu, 26 Jan 2017 13:06:35 -0500 Subject: [PATCH] Make sure to pass the correct arguments to the cache hash method --- src/API/Kitsu/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/Kitsu/Model.php b/src/API/Kitsu/Model.php index 9f4d9a93..0d1a0c02 100644 --- a/src/API/Kitsu/Model.php +++ b/src/API/Kitsu/Model.php @@ -87,7 +87,7 @@ class Model { */ public function getUserIdByUsername(string $username) { - $cacheItem = $this->cache->getItem($this->getHashForMethodCall($this, __METHOD__, $username)); + $cacheItem = $this->cache->getItem($this->getHashForMethodCall($this, __METHOD__, [$username])); if ( ! $cacheItem->isHit()) {