Skip to content

Commit

Permalink
[8.x] Modify mergeCasts to return `` (#35683)
Browse files Browse the repository at this point in the history
  • Loading branch information
finagin authored Dec 21, 2020
1 parent 28a8461 commit b0c5fbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,13 @@ protected function mutateAttributeForArray($key, $value)
* Merge new casts with existing casts on the model.
*
* @param array $casts
* @return void
* @return $this
*/
public function mergeCasts($casts)
{
$this->casts = array_merge($this->casts, $casts);

return $this;
}

/**
Expand Down

0 comments on commit b0c5fbf

Please sign in to comment.