Skip to content

Commit ca95cfa

Browse files
authored
Merge pull request #19 from prajapati-kaushik/0000-runtim-exception-issue
fix: runtime exception include missing #0000
2 parents 6d2dfb4 + 5fdd7dd commit ca95cfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
public static function fromDsn($dsn)
4141
{
4242
if (!filter_var($dsn, FILTER_VALIDATE_URL)) {
43-
throw new RuntimeException('DSN is an invalid URL: '.$dsn);
43+
throw new \RuntimeException('DSN is an invalid URL: '.$dsn);
4444
}
4545

4646
$part = parse_url($dsn);
@@ -52,7 +52,7 @@ public static function fromDsn($dsn)
5252
$part['path'] = trim($part['path'], '/');
5353
$pathPart = explode('/', $part['path']);
5454
if ((count($pathPart) < 2) || (count($pathPart) > 3)) {
55-
throw new RuntimeException('Expecting url path with exactly 2 or 3 parts: '.$part['path']);
55+
throw new \RuntimeException('Expecting url path with exactly 2 or 3 parts: '.$part['path']);
5656
}
5757

5858
$account = $pathPart[0];

0 commit comments

Comments
 (0)