Skip to content

Commit 207b6a1

Browse files
Update system/Database/BaseBuilder.php
Co-authored-by: Michal Sniatala <[email protected]>
1 parent c42d40f commit 207b6a1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

system/Database/BaseBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,9 +1864,7 @@ public function setData($set, ?bool $escape = null, string $alias = '')
18641864
*/
18651865
public function getCompiledUpsert()
18661866
{
1867-
$currentTestMode = $this->testMode;
1868-
1869-
$this->testMode = true;
1867+
[$currentTestMode, $this->testMode] = [$this->testMode, true];
18701868

18711869
$sql = implode(";\n", $this->upsert());
18721870

0 commit comments

Comments
 (0)