Skip to content

Commit 309d877

Browse files
committed
fix: prop syntax define compatible php 7.1
1 parent 6909a68 commit 309d877

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Str/UrlHelper.php

Lines changed: 4 additions & 4 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, ...$paths): string
108+
public static function joinPath(string $baseUri, string ...$paths): string
109109
{
110110
return $baseUri . ($paths ? '/' . implode('/', $paths) : '');
111111
}
@@ -166,7 +166,7 @@ public static function canAccessed(string $url): bool
166166
}
167167

168168
// Build arrays of values we need to decode before parsing
169-
protected static array $entities = [
169+
protected static $entities = [
170170
'%21',
171171
'%2A',
172172
'%27',
@@ -186,7 +186,7 @@ public static function canAccessed(string $url): bool
186186
'%5D'
187187
];
188188

189-
protected static array $replacements = [
189+
protected static $replacements = [
190190
'!',
191191
'*',
192192
"'",

0 commit comments

Comments
 (0)