Skip to content

Commit

Permalink
Update Color.php
Browse files Browse the repository at this point in the history
Fix error:
"Declaration of Timothyasp\\Color\\Color::compact() must be compatible with Laravel\\Nova\\Fields\\Field::compact(bool $compact = true) "
  • Loading branch information
yaroslawww authored Jun 30, 2023
1 parent c51a5d2 commit 436bca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function chrome()
}


public function compact()
public function compact(bool $compact = true)
{
return $this->pickerType('compact');
}
Expand Down

0 comments on commit 436bca0

Please sign in to comment.