Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/v1.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
chadidi committed Jun 28, 2020
2 parents 4b95200 + 12d34a9 commit 8497868
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/Models/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ class Translation extends Model
{
protected $table = 'translations';

protected $fillable = ['table_name', 'column_name', 'foreign_key', 'locale', 'value'];
protected $fillable = [
'table_name',
'column_name',
'foreign_key',
'locale',
'value',
];
}
6 changes: 3 additions & 3 deletions src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ public function __set($name, $value)
$this->attributes[$name]['modified'] = true;
}

public function getOffset($offset)
public function offsetGet($offset)
{
return $this->attributes[$offset]['value'];
}

public function setOffset($offset, $value)
public function offsetSet($offset, $value)
{
$this->attributes[$offset]['value'] = $value;

Expand All @@ -196,7 +196,7 @@ public function offsetExists($offset)
return isset($this->attributes[$offset]);
}

public function unsetOffset($offset)
public function offsetUnset($offset)
{
unset($this->attributes[$offset]);
}
Expand Down

0 comments on commit 8497868

Please sign in to comment.