Skip to content

Commit

Permalink
Merge pull request #3 from milewski/patch-1
Browse files Browse the repository at this point in the history
Fix issue with laravel 6
  • Loading branch information
nbourguig authored Oct 13, 2019
2 parents 2450ac8 + c9f75a7 commit c0661d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Rating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Nikaia\Rating;

use Laravel\Nova\Fields\Field;
use Illuminate\Support\Arr;

class Rating extends Field
{
Expand Down Expand Up @@ -114,7 +115,7 @@ public function withStyles(array $styles)
{
$build = [];
foreach (static::$defaultStyles as $key => $defaultValue) {
$build[$key] = array_get($styles, $key, $defaultValue);
$build[$key] = Arr::get($styles, $key, $defaultValue);
}

return $this->withMeta($build);
Expand Down

0 comments on commit c0661d9

Please sign in to comment.