Skip to content

Commit 6909a68

Browse files
committed
fix: UrlHelper.joinPath compatible php 7.1
1 parent e3855a9 commit 6909a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Str/UrlHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ public static function isFullUrl(string $url): bool
101101

102102
/**
103103
* @param string $baseUri
104-
* @param string ...$paths
104+
* @param string[] ...$paths
105105
*
106106
* @return string
107107
*/
108-
public static function joinPath(string $baseUri, string ...$paths): string
108+
public static function joinPath(string $baseUri, ...$paths): string
109109
{
110110
return $baseUri . ($paths ? '/' . implode('/', $paths) : '');
111111
}

0 commit comments

Comments
 (0)