Skip to content

Commit

Permalink
Merge pull request #9 from Konnco/analysis-gOOnpG
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
frankyso authored Dec 27, 2019
2 parents 2b7cd87 + d27a062 commit e31b7e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Transeloquent.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trait Transeloquent
* @var array
*/
protected $transeloquent = [
'attributes' => [],
'attributes' => [],
'translations' => [],
];

Expand Down Expand Up @@ -53,6 +53,7 @@ public static function bootTranseloquent(): void
public function attributesToArray()
{
$attributes = parent::attributesToArray();

return array_merge(collect($this->transeloquent['attributes'])->toArray(), $attributes);
}

Expand Down

0 comments on commit e31b7e3

Please # to comment.