From 6db4fdf4fc1177af401645149cda814f1fce27c3 Mon Sep 17 00:00:00 2001 From: Nassif Bourguig Date: Tue, 24 Dec 2019 08:19:41 +0100 Subject: [PATCH] fix: Issue with Rating construct arguments typing. Fixes #1 --- src/Rating.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rating.php b/src/Rating.php index a5cdd11..5bb2025 100644 --- a/src/Rating.php +++ b/src/Rating.php @@ -2,8 +2,8 @@ namespace Nikaia\Rating; -use Laravel\Nova\Fields\Field; use Illuminate\Support\Arr; +use Laravel\Nova\Fields\Field; class Rating extends Field { @@ -40,7 +40,7 @@ class Rating extends Field * @param null|string $attribute * @param mixed|null $resolveCallback */ - public function __construct(string $name, ?string $attribute = null, ?mixed $resolveCallback = null) + public function __construct(string $name, $attribute = null, ?mixed $resolveCallback = null) { parent::__construct($name, $attribute, $resolveCallback);