We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a66856a commit e088832Copy full SHA for e088832
src/Component/UriPathFactory.php
@@ -11,11 +11,6 @@
11
12
final readonly class UriPathFactory implements UriPathFactoryInterface
13
{
14
- /**
15
- * @var non-empty-string
16
- */
17
- private const string SEGMENT_DELIMITER = Path::PATH_SEGMENT_DELIMITER;
18
-
19
public function createPathFromString(\Stringable|string $path): PathInterface
20
21
if ($path instanceof PathInterface) {
@@ -51,7 +46,7 @@ private static function segments(string $path): array
51
46
52
47
$result = [];
53
48
54
- foreach (\explode(self::SEGMENT_DELIMITER, $path) as $segment) {
49
+ foreach (\explode('/', $path) as $segment) {
55
50
if ($segment !== '') {
56
$result[] = \urldecode($segment);
57
}
0 commit comments