Skip to content

Commit 4d43abf

Browse files
committed
fixup! Improve UriTag test coverage for consistent key generation across parameter order.
1 parent c715702 commit 4d43abf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/UriTag.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function __invoke(AbstractUri $uri): string
2727
ksort($query);
2828

2929
$uriKey = sprintf('%s_%s', $uri->path, http_build_query($query));
30+
3031
// Sanitize the URI key by replacing special characters (/, ?, &) with underscores
3132
// to ensure it is a valid surrogate key and make it enable with Symfony cache adapter
3233
return str_replace(['/', '?', '&'], '_', $uriKey);

0 commit comments

Comments
 (0)