Skip to content

Commit a1dbee5

Browse files
committed
fixed insert() return values
1 parent deefb66 commit a1dbee5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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 T|array<string, mixed>|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)