Skip to content

Commit

Permalink
Fix argument declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Алексей Анохин committed Mar 10, 2022
1 parent 6685f81 commit 3f19ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Swoole/PgSQL/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function exec(string $sql) : int
*
* @param string|null $name
*/
public function lastInsertId(?string $name = null) : string
public function lastInsertId($name = null) : string
{
$result = ! empty($name)
? $this->query('SELECT CURRVAL(\'' . $name . '\')')
Expand Down

0 comments on commit 3f19ef3

Please sign in to comment.