From 857d74e57027e1e12bc219fc187ec36a49a36d67 Mon Sep 17 00:00:00 2001 From: David Vincent Date: Thu, 31 Mar 2022 17:10:17 +0200 Subject: [PATCH] Update JSONEditor.php Add closure to methods --- src/Forms/JSONEditor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forms/JSONEditor.php b/src/Forms/JSONEditor.php index 03c0daa..74b30b8 100644 --- a/src/Forms/JSONEditor.php +++ b/src/Forms/JSONEditor.php @@ -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;