Skip to content

Commit 2dbe643

Browse files
committed
added bool parameter for better method call
1 parent a5bd591 commit 2dbe643

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

system/Database/BaseBuilder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,13 @@ public function getBinds(): array
269269
*
270270
* Set ignore Flag for next insert query.
271271
*
272+
* @param bool $ignore
273+
*
272274
* @return BaseBuilder
273275
*/
274-
public function ignore()
276+
public function ignore(bool $ignore = true)
275277
{
276-
$this->insertIgnore = true;
278+
$this->insertIgnore = $ignore;
277279

278280
return $this;
279281
}

0 commit comments

Comments
 (0)