diff --git a/src/Support/Utils.php b/src/Support/Utils.php index 9e9cce1..28eb08e 100644 --- a/src/Support/Utils.php +++ b/src/Support/Utils.php @@ -27,9 +27,9 @@ public static function titleColumnName(): string return config('filament-tree.column_name.title', 'title'); } - public static function defaultParentId(): int + public static function defaultParentId(): int|null { - return (int) config('filament-tree.default_parent_id', -1); + return config('filament-tree.default_parent_id', -1); } public static function defaultChildrenKeyName(): string