From b84f500699c64bfe7de9ac0bb4c608b757fe2e55 Mon Sep 17 00:00:00 2001 From: Jan Tvrdik Date: Fri, 28 Jul 2017 20:08:23 +0200 Subject: [PATCH] fixed escapeInt not returning string in some dbal adapters --- src/Bridges/Dibi/DibiAdapter.php | 2 +- src/Bridges/NextrasDbal/NextrasAdapter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bridges/Dibi/DibiAdapter.php b/src/Bridges/Dibi/DibiAdapter.php index e2ef327..e2571ca 100644 --- a/src/Bridges/Dibi/DibiAdapter.php +++ b/src/Bridges/Dibi/DibiAdapter.php @@ -49,7 +49,7 @@ public function escapeString($value) public function escapeInt($value) { - return (int) $value; + return (string) (int) $value; } diff --git a/src/Bridges/NextrasDbal/NextrasAdapter.php b/src/Bridges/NextrasDbal/NextrasAdapter.php index 9838d71..e6a127e 100644 --- a/src/Bridges/NextrasDbal/NextrasAdapter.php +++ b/src/Bridges/NextrasDbal/NextrasAdapter.php @@ -61,7 +61,7 @@ public function escapeString($value) public function escapeInt($value) { - return (int) $value; + return (string) (int) $value; }