Skip to content

Commit

Permalink
Update JSONEditor.php
Browse files Browse the repository at this point in the history
Add closure to methods
  • Loading branch information
invaders-xx committed Mar 31, 2022
1 parent dae1c2a commit 857d74e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Forms/JSONEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ class JSONEditor extends Field implements JSONEditorOptions

public string $view = 'filament-jsoneditor::json-editor';

public function modes(array $modes): self
public function modes(array | Closure | null $modes): static
{
$this->modes = $modes;

return $this;
}

public function height(int $height): self
public function height(int | Closure | null $height): static
{
$this->height = $height;

Expand Down

0 comments on commit 857d74e

Please sign in to comment.