Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 19, 2022
1 parent a63f2f7 commit 5c75b0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2605,9 +2605,9 @@ public function value($column)
*/
public function rawValue(string $expression, array $bindings = [])
{
if ($result = $this->selectRaw($expression, $bindings)->take(1)->first()) {
return reset($result);
}
$result = (array) $this->selectRaw($expression, $bindings)->first();

return count($result) > 0 ? reset($result) : null;
}

/**
Expand Down

0 comments on commit 5c75b0c

Please sign in to comment.