Skip to content

Commit

Permalink
update method signature to add parameter type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
Markshall committed May 28, 2024
1 parent 14a1a1c commit dbcecb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3749,10 +3749,10 @@ public function updateFrom(array $values)
* Insert or update a record matching the attributes, and fill it with values.
*
* @param array $attributes
* @param \Closure|array $values
* @param array|callable $values
* @return bool
*/
public function updateOrInsert(array $attributes, $values = [])
public function updateOrInsert(array $attributes, array|callable $values = [])
{
$exists = $this->where($attributes)->exists();

Expand Down

0 comments on commit dbcecb4

Please sign in to comment.