Make sure to pass the correct arguments to the cache hash method

This commit is contained in:
Timothy Warren 2017-01-26 13:06:35 -05:00
parent 0ae52a13f3
commit f57c24abe4

View File

@ -87,7 +87,7 @@ class Model {
*/ */
public function getUserIdByUsername(string $username) 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()) if ( ! $cacheItem->isHit())
{ {