From 6840db0bbde53c3e01001e9b2fea2759c54c17c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Sch=C3=B6ps?= <44115562+SebastianSchoeps@users.noreply.github.com> Date: Tue, 9 Jan 2024 10:36:09 +0100 Subject: [PATCH] Add missing "?" Fixes the error "Type of ...\RelationManagers\ContributionsRelationManager::$title must be ?string (as in class Filament\Resources\RelationManagers\RelationManager)" --- packages/panels/docs/03-resources/07-relation-managers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/panels/docs/03-resources/07-relation-managers.md b/packages/panels/docs/03-resources/07-relation-managers.md index 0f5188218b..ca162d1b37 100644 --- a/packages/panels/docs/03-resources/07-relation-managers.md +++ b/packages/panels/docs/03-resources/07-relation-managers.md @@ -756,7 +756,7 @@ public function table(Table $table): Table To set the title of the relation manager, you can use the `$title` property on the relation manager class: ```php -protected static string $title = 'Posts'; +protected static ?string $title = 'Posts'; ``` To set the title of the relation manager dynamically, you can override the `getTitle()` method on the relation manager class: