Skip to content

Commit

Permalink
Fix PHPStan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Sep 27, 2023
1 parent fe51beb commit 22cc608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cache/Driver/TaggableFileStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 22cc608

Please sign in to comment.