Skip to content

Commit 22cc608

Browse files
committed
Fix PHPStan issue
1 parent fe51beb commit 22cc608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cache/Driver/TaggableFileStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function path($key)
7474
$hash = $key;
7575
$parts = [];
7676
} else {
77-
$parts = array_slice(str_split($hash = sha1($key), 2), 0, 2);
77+
$parts = array_slice(str_split($hash = sha1((string) $key), 2), 0, 2);
7878
}
7979

8080
return $this->directory . $this->ds . $folder . (count($parts) > 0 ? implode($this->ds, $parts) . $this->ds : '') . $hash;

0 commit comments

Comments
 (0)