Skip to content

Commit

Permalink
doctrine#3074 doctrine#2765 Applying CS and adding lacking types whe…
Browse files Browse the repository at this point in the history
…rever holes have been forgotten
  • Loading branch information
Ocramius authored and morozov committed Apr 3, 2018
1 parent 8d1ebf7 commit eb85408
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 81 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar
* @param string $password
* @param array $driverOptions
*
* @throws \Doctrine\DBAL\Driver\Mysqli\MysqliException
* @throws MysqliException
*/
public function __construct(array $params, $username, $password, array $driverOptions = [])
{
Expand Down
6 changes: 2 additions & 4 deletions lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,9 @@ class MysqliStatement implements \IteratorAggregate, Statement
private $lastInsertId;

/**
* @param string $prepareString
*
* @throws \Doctrine\DBAL\Driver\Mysqli\MysqliException
* @throws MysqliException
*/
public function __construct(\mysqli $conn, $prepareString, ?LastInsertId $lastInsertId = null)
public function __construct(\mysqli $conn, string $prepareString, ?LastInsertId $lastInsertId = null)
{
$this->_conn = $conn;
$this->_stmt = $conn->prepare($prepareString);
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Driver/PDOConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function trackLastInsertId() : void
*
* @return string The last insert ID or '0' in case the last insert ID generated on this connection is unknown.
*
* @throws PDOException
* @throws \PDOException
*/
protected function fetchLastInsertId(?string $sequenceName) : string
{
Expand Down
Loading

0 comments on commit eb85408

Please sign in to comment.