8000 #37864 fixed prefix trim · symfony/symfony@9e84cd6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e84cd6

Browse filesBrowse files
author
Joe Bennett
committed
#37864 fixed prefix trim
1 parent 4f1f913 commit 9e84cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Lock/Store/MongoDbStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private function skimUri(string $uri): string
151151
$prefix = $matches[1];
152152
$this->options['collection'] = $matches[2];
153153
if (empty($matches[4])) {
154-
$prefix = substr($prefix, 0, \strlen($prefix) - 1);
154+
$prefix = substr($prefix, 0, -1);
155155
}
156156
$uri = $prefix.$matches[3];
157157
}

0 commit comments

Comments
 (0)
0