From 0df49ff670764680ed69d36e7fa2caccae3cedfc Mon Sep 17 00:00:00 2001 From: printempw Date: Sat, 29 Oct 2016 21:31:58 +0800 Subject: [PATCH] fix using InvalidArgumentException --- app/Services/Database/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Database/Database.php b/app/Services/Database/Database.php index 284a6e5f..3c9a7934 100644 --- a/app/Services/Database/Database.php +++ b/app/Services/Database/Database.php @@ -50,7 +50,7 @@ class Database if ($this->connection->connect_error) throw new \InvalidArgumentException("Could not connect to MySQL database. Check your configuration:". - $this->connection->connect_error, $this->connection->connect_errno, true); + $this->connection->connect_error, $this->connection->connect_errno); $this->connection->query("SET names 'utf8'"); }