diff --git a/src/Cassandra.php b/src/Cassandra.php index 8ce016a..fd1c85c 100644 --- a/src/Cassandra.php +++ b/src/Cassandra.php @@ -325,7 +325,7 @@ public function connect(string $host, string $user = '', string $passwd = '', st if ($result) return $result; - else if ($lastExecption) + else if ($lastException) throw $lastException; else return false;