Skip to content

Commit e4de0fc

Browse files
authored
Added method Query\Builder::upsert(). (#5562)
1 parent ce2247e commit e4de0fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Query/Grammars/PostgresGrammar.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ public function compileUpdate(Builder $query, $values): string
7575

7676
/**
7777
* Compile an "upsert" statement into SQL.
78-
*
79-
* @return string
8078
*/
81-
public function compileUpsert(Builder $query, array $values, array $uniqueBy, array $update)
79+
public function compileUpsert(Builder $query, array $values, array $uniqueBy, array $update): string
8280
{
8381
$sql = $this->compileInsert($query, $values);
8482

0 commit comments

Comments
 (0)