diff --git a/src/TableGateway/AbstractTableGateway.php b/src/TableGateway/AbstractTableGateway.php index 80387a78..daaaf240 100644 --- a/src/TableGateway/AbstractTableGateway.php +++ b/src/TableGateway/AbstractTableGateway.php @@ -49,7 +49,7 @@ abstract class AbstractTableGateway implements TableGatewayInterface protected ?Sql $sql = null; - protected ?int $lastInsertValue = null; + protected string|int|false|null $lastInsertValue = null; public function isInitialized(): bool { @@ -400,7 +400,7 @@ protected function executeDelete(Delete $delete): int return $result->getAffectedRows(); } - public function getLastInsertValue(): int + public function getLastInsertValue(): string|int|false|null { return $this->lastInsertValue; }