From 7fda301b2105037d1f4669224318666194839702 Mon Sep 17 00:00:00 2001 From: Patrick Barnhardt Date: Thu, 15 Aug 2024 13:21:12 -0400 Subject: [PATCH] Update ViewTicket.php Override the getFormStatePath() to set it to public to resolve the access level error reported in InteractsWithForms::getFormStatePath() from Filament. --- .../Resources/TicketResource/Pages/ViewTicket.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Filament/Resources/TicketResource/Pages/ViewTicket.php b/app/Filament/Resources/TicketResource/Pages/ViewTicket.php index c1e68c629..2762b009c 100644 --- a/app/Filament/Resources/TicketResource/Pages/ViewTicket.php +++ b/app/Filament/Resources/TicketResource/Pages/ViewTicket.php @@ -238,4 +238,14 @@ public function cancelEditComment(): void $this->form->fill(); $this->selectedCommentId = null; } + + /** + * Overrides the getFormStatePath method to set its access level to public. + * + * @return string + */ + public function getFormStatePath(): string + { + return 'form'; + } }