We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0be6a commit 0692965Copy full SHA for 0692965
src/Neo4jQueryAPI.php
@@ -31,6 +31,12 @@ public function __construct(Client $client)
31
*/
32
public static function login(string $address, string $username, string $password): self
33
{
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
40
41
$client = new Client([
42
'base_uri' => rtrim($address, '/'),
0 commit comments