Skip to content

Commit 900d923

Browse files
committed
Improve RFC3986 parsing validation
1 parent 42f7fcf commit 900d923

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interfaces/UriString.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ public static function parse(Stringable|string|int $uri): array
583583
]
584584
);
585585

586-
return self::validateComponents($components);
586+
return $components;
587587
}
588588

589589
/**
@@ -598,7 +598,7 @@ public static function parse(Stringable|string|int $uri): array
598598
*
599599
* @return ComponentMap
600600
*/
601-
private static function validateComponents(array $components): array
601+
public static function validateComponents(array $components): array
602602
{
603603
$authority = UriString::buildAuthority($components);
604604
$path = $components['path'];

0 commit comments

Comments
 (0)