Skip to content

Commit

Permalink
Update src/Query/Processor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taka-oyama authored Jan 8, 2025
1 parent 9243dbe commit 1ceb127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function processInsertGetId(Builder $query, $sql, $values, $sequence = nu

$result = $connection->select($sql, $values)[0];

$sequence = $sequence ?: 'id';
$sequence ??= 'id';

return is_object($result)
? $result->{$sequence}
Expand Down

0 comments on commit 1ceb127

Please sign in to comment.