From a84ac97d3df7c021ccd4af4b28b2afeb75e42894 Mon Sep 17 00:00:00 2001 From: Fabian de Laender Date: Wed, 6 Mar 2019 14:07:56 +0100 Subject: [PATCH] Release version 1.11.0 --- CHANGELOG.md | 5 +++++ src/Statement/StatementContainer.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dcd094..16ec924 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ### Changelog +##### v1.11.0 ++ Rename package namespace in favor of Slim Framework (#20) ++ Updated `StatementContainer` class with: + - Fixed `getPlaceholders()` method (#92) + ##### v1.10.1 + Updated `Database` class with: - Allow user provided PDO options to overwrite default values diff --git a/src/Statement/StatementContainer.php b/src/Statement/StatementContainer.php index 54e59c1..613e641 100644 --- a/src/Statement/StatementContainer.php +++ b/src/Statement/StatementContainer.php @@ -511,7 +511,7 @@ protected function getPlaceholders() protected function setPlaceholders(array $values) { foreach ($values as $value) { - $this->placeholders[] = $this->setPlaceholder('?', is_null($value) ? 1 : sizeof($value)); + $this->placeholders[] = $this->setPlaceholder('?', is_null($value) ? 1 : (is_array($value) ? sizeof($value) : 1)); } }