Skip to content

Commit e6d5d46

Browse files
samvdbBilge
authored andcommitted
Remove illegal characters from caching hash according to PSR6 spec.
1 parent 64037b0 commit e6d5d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Connector/CachingConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ public function isCacheEnabled()
7676

7777
private function hash(array $structure)
7878
{
79-
return json_encode($structure);
79+
return str_replace(str_split('{}()/\@:'), '.', json_encode($structure));
8080
}
8181
}

0 commit comments

Comments
 (0)