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 04e8a9e514
commit 192618b890

View File

@ -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())
{