|
@@ -224,12 +224,12 @@ |
|
|
block discarded – undo |
|
224
|
224
|
|
|
225
|
225
|
// Check the URI scheme |
|
226
|
226
|
$validSchemes = array('redis', 'rediss', 'tcp'); |
|
227
|
|
- if (isset($parts['scheme']) && ! in_array($parts['scheme'], $validSchemes)) { |
|
|
227
|
+ if (isset($parts['scheme']) && !in_array($parts['scheme'], $validSchemes)) { |
|
228
|
228
|
throw new InvalidArgumentException("Invalid DSN. Supported schemes are " . implode(', ', $validSchemes)); |
|
229
|
229
|
} |
|
230
|
230
|
|
|
231
|
231
|
// Allow simple 'hostname' format, which `parse_url` treats as a path, not host. |
|
232
|
|
- if (! isset($parts['host']) && isset($parts['path'])) { |
|
|
232
|
+ if (!isset($parts['host']) && isset($parts['path'])) { |
|
233
|
233
|
$parts['host'] = $parts['path']; |
|
234
|
234
|
unset($parts['path']); |
|
235
|
235
|
} |
Please login to merge, or discard this patch.