Skip to content

Commit d34afbc

Browse files
committed
Null is allowed
Signed-off-by: Shawn Bulen <[email protected]>
1 parent a3eecdd commit d34afbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Db/APIs/PostgreSQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ public function transaction(string $type = 'commit', ?object $connection = null)
680680
/**
681681
*
682682
*/
683-
public function error(object $connection): string
683+
public function error(?object $connection = null): string
684684
{
685685
if ($connection === null && $this->connection === null) {
686686
return '';

0 commit comments

Comments
 (0)