Commit 32817aac authored by Marco Pivetta's avatar Marco Pivetta

Merge pull request #565 from Tobion/patch-2

fix lastInsertId typehint in SqlSrv
parents 0833d00b 705dd7b0
......@@ -106,11 +106,11 @@ class SQLSrvStatement implements IteratorAggregate, Statement
const LAST_INSERT_ID_SQL = ';SELECT SCOPE_IDENTITY() AS LastInsertId;';
/**
* @param resource $conn
* @param string $sql
* @param integer|null $lastInsertId
* @param resource $conn
* @param string $sql
* @param \Doctrine\DBAL\Driver\SQLSrv\LastInsertId|null $lastInsertId
*/
public function __construct($conn, $sql, $lastInsertId = null)
public function __construct($conn, $sql, LastInsertId $lastInsertId = null)
{
$this->conn = $conn;
$this->sql = $sql;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment