Skip to content

Commit 2b3b769

Browse files
committed
ActiveRow: removed typehint
1 parent 302586e commit 2b3b769

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Database/Table/ActiveRow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function related(string $key, string $throughColumn = null): GroupedSelec
150150
/**
151151
* Updates row.
152152
*/
153-
public function update(iterable $data): bool
153+
public function update($data): bool
154154
{
155155
if ($data instanceof \Traversable) {
156156
$data = iterator_to_array($data);

src/Database/Table/GroupedSelection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ protected function emptyResultSet(bool $saveCache = true, bool $deleteRererenced
215215
/********************* manipulation ****************d*g**/
216216

217217

218-
public function insert(iterable $data)
218+
public function insert($data)
219219
{
220220
if ($data instanceof \Traversable && !$data instanceof Selection) {
221221
$data = iterator_to_array($data);
@@ -233,7 +233,7 @@ public function insert(iterable $data)
233233
}
234234

235235

236-
public function update(iterable $data): int
236+
public function update($data): int
237237
{
238238
$builder = $this->sqlBuilder;
239239

src/Database/Table/Selection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ protected function refreshData(): void
737737
* @param array|\Traversable|Selection $data [$column => $value]|\Traversable|Selection for INSERT ... SELECT
738738
* @return ActiveRow|int|bool Returns IRow or number of affected rows for Selection or table without primary key
739739
*/
740-
public function insert(iterable $data)
740+
public function insert($data)
741741
{
742742
//should be called before query for not to spoil PDO::lastInsertId
743743
$primarySequenceName = $this->getPrimarySequence();
@@ -817,7 +817,7 @@ public function insert(iterable $data)
817817
* Joins in UPDATE are supported only in MySQL
818818
* @return int number of affected rows
819819
*/
820-
public function update(iterable $data): int
820+
public function update($data): int
821821
{
822822
if ($data instanceof \Traversable) {
823823
$data = iterator_to_array($data);

0 commit comments

Comments
 (0)