Skip to content

Commit e2a709d

Browse files
committed
Apply suggestions from code review
1 parent b4da5a8 commit e2a709d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/Query/Builder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,6 @@ public function upsert(array $values, $uniqueBy, $update = null): int
735735
$this->applyBeforeQueryCallbacks();
736736

737737
$options = $this->inheritConnectionOptions();
738-
$options['upsert'] = true;
739738
$uniqueBy = array_fill_keys((array) $uniqueBy, 1);
740739

741740
// If no update fields are specified, all fields are updated

tests/ModelTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ public function testUpdate(): void
145145

146146
public function testUpsert()
147147
{
148-
149148
$result = User::upsert([
150149
['email' => 'foo', 'name' => 'bar'],
151150
['name' => 'bar2', 'email' => 'foo2'],

0 commit comments

Comments
 (0)