Skip to content

Commit 6cde2ab

Browse files
authored
Fix argument types for Illuminate/Database/Query/Builder::upsert() (#55849)
* Fix argument types for Illuminate/Database/Query/Builder::upsert() Ensures IDE hinting isn't out of order. * Restore previous sorting of imports
1 parent 0212f88 commit 6cde2ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Illuminate/Database/Query/Builder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3898,11 +3898,9 @@ public function updateOrInsert(array $attributes, array|callable $values = [])
38983898
/**
38993899
* Insert new records or update the existing ones.
39003900
*
3901-
* @param array|string $uniqueBy
3902-
* @param array|null $update
39033901
* @return int
39043902
*/
3905-
public function upsert(array $values, $uniqueBy, $update = null)
3903+
public function upsert(array $values, array|string $uniqueBy, ?array $update = null)
39063904
{
39073905
if (empty($values)) {
39083906
return 0;

0 commit comments

Comments
 (0)