Skip to content

Commit 2a35cd5

Browse files
committed
fixed insert() return values
1 parent 47a535f commit 2a35cd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Database/Table/GroupedSelection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ protected function emptyResultSet(bool $clearCache = true, bool $deleteReference
238238
/********************* manipulation ****************d*g**/
239239

240240

241-
public function insert(iterable $data): ActiveRow|array|int|bool
241+
public function insert(iterable $data): ActiveRow|array|int
242242
{
243243
if ($data instanceof \Traversable && !$data instanceof Selection) {
244244
$data = iterator_to_array($data);

src/Database/Table/Selection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ public function getDataRefreshed(): bool
802802
* @param iterable<string, mixed>|self $data
803803
* @return ($data is array<string, mixed> ? T : int)
804804
*/
805-
public function insert(iterable $data): ActiveRow|array|int|bool
805+
public function insert(iterable $data): ActiveRow|array|int
806806
{
807807
//should be called before query for not to spoil PDO::lastInsertId
808808
$primarySequenceName = $this->getPrimarySequence();

0 commit comments

Comments
 (0)