Skip to content

Commit 0692965

Browse files
committed
DEBUG
1 parent 6c0be6a commit 0692965

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Neo4jQueryAPI.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ public function __construct(Client $client)
3131
*/
3232
public static function login(string $address, string $username, string $password): self
3333
{
34+
if (empty($address)) {
35+
throw new RuntimeException('Address cannot be empty');
36+
}
37+
if (empty($username) || empty($password)) {
38+
throw new RuntimeException('Missing username or password');
39+
}
3440

3541
$client = new Client([
3642
'base_uri' => rtrim($address, '/'),

0 commit comments

Comments
 (0)