Skip to content

Commit 25fab6b

Browse files
authored
Merge pull request #119 from php-db/117-abstracttablegateway-lastinsertvalue
Update AbstractTableGateway.php
2 parents df0b1dd + a693e77 commit 25fab6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TableGateway/AbstractTableGateway.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ abstract class AbstractTableGateway implements TableGatewayInterface
4949

5050
protected ?Sql $sql = null;
5151

52-
protected ?int $lastInsertValue = null;
52+
protected string|int|false|null $lastInsertValue = null;
5353

5454
public function isInitialized(): bool
5555
{
@@ -400,7 +400,7 @@ protected function executeDelete(Delete $delete): int
400400
return $result->getAffectedRows();
401401
}
402402

403-
public function getLastInsertValue(): int
403+
public function getLastInsertValue(): string|int|false|null
404404
{
405405
return $this->lastInsertValue;
406406
}

0 commit comments

Comments
 (0)