diff --git a/src/Cache/Driver/TaggableFileStore.php b/src/Cache/Driver/TaggableFileStore.php index 3b224e7..516cac1 100644 --- a/src/Cache/Driver/TaggableFileStore.php +++ b/src/Cache/Driver/TaggableFileStore.php @@ -74,7 +74,7 @@ protected function path($key) $hash = $key; $parts = []; } else { - $parts = array_slice(str_split($hash = sha1($key), 2), 0, 2); + $parts = array_slice(str_split($hash = sha1((string) $key), 2), 0, 2); } return $this->directory . $this->ds . $folder . (count($parts) > 0 ? implode($this->ds, $parts) . $this->ds : '') . $hash;