Skip to content

Commit

Permalink
fix fluent bug when using named parameters (#44251)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneycampos authored Sep 22, 2022
1 parent d05ce22 commit 84d3cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Fluent.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function offsetUnset($offset): void
*/
public function __call($method, $parameters)
{
$this->attributes[$method] = count($parameters) > 0 ? $parameters[0] : true;
$this->attributes[$method] = count($parameters) > 0 ? reset($parameters) : true;

return $this;
}
Expand Down

0 comments on commit 84d3cc9

Please sign in to comment.