From a41c9e4d684247adb1c41c725cb2d995e700c743 Mon Sep 17 00:00:00 2001 From: Pavel Zubkou Date: Wed, 20 Nov 2013 10:47:43 +0200 Subject: [PATCH] Specify correct return type for `Pdo\Connection::getLastGeneratedValue` See http://php.net/manual/en/pdo.lastinsertid.php for reference that it returns `sting` instead of `int`. TODO: change type of `$lastInsertValue` property and `getLastInsertValue` method in `Zend/Db/TableGateway/AbstractTableGateway.php` accordingly. --- library/Zend/Db/Adapter/Driver/Pdo/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/Db/Adapter/Driver/Pdo/Connection.php b/library/Zend/Db/Adapter/Driver/Pdo/Connection.php index 2ece6759009..f729104dbea 100644 --- a/library/Zend/Db/Adapter/Driver/Pdo/Connection.php +++ b/library/Zend/Db/Adapter/Driver/Pdo/Connection.php @@ -419,7 +419,7 @@ public function prepare($sql) * Get last generated id * * @param string $name - * @return int|null|false + * @return string|null|false */ public function getLastGeneratedValue($name = null) {