From 8d24b2ee737a22f80984ebb9a186c0d09863e803 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Thu, 2 Jul 2020 18:19:33 +0300 Subject: [PATCH] Fixed hinting --- src/Appwrite/Extend/PDO.php | 2 +- src/Appwrite/Extend/PDOStatement.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Extend/PDO.php b/src/Appwrite/Extend/PDO.php index 786064a0f6..4eefe6bec0 100644 --- a/src/Appwrite/Extend/PDO.php +++ b/src/Appwrite/Extend/PDO.php @@ -4,7 +4,7 @@ namespace Appwrite\Extend; use PDO as PDONative; -class PDO +class PDO extends PDONative { /** * @var PDONative diff --git a/src/Appwrite/Extend/PDOStatement.php b/src/Appwrite/Extend/PDOStatement.php index 670b84bf00..a0046cece9 100644 --- a/src/Appwrite/Extend/PDOStatement.php +++ b/src/Appwrite/Extend/PDOStatement.php @@ -5,7 +5,7 @@ namespace Appwrite\Extend; use PDO as PDONative; use PDOStatement as PDOStatementNative; -class PDOStatement +class PDOStatement extends PDOStatementNative { /** * @var PDO @@ -50,6 +50,7 @@ class PDOStatement $result = $this->PDOStatement->execute($input_parameters); } catch (\Throwable $th) { // throw new Exception('My Error: ' .$th->getMessage()); + sleep(1); $this->pdo->reconnect(); $result = $this->PDOStatement->execute($input_parameters); }