diff --git a/composer.json b/composer.json index 1a4d6b1..a732bf3 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ ], "require": { "php": "^8.1", - "lara-zeus/filament-plugin-tools": "^1.0" + "lara-zeus/filament-plugin-tools": "*" }, "require-dev": { "larastan/larastan": "^3.0", @@ -37,7 +37,8 @@ "pestphp/pest-plugin-arch": "^3.0", "pestphp/pest-plugin-laravel": "^3.0", "pestphp/pest-plugin-livewire": "^3.0", - "phpstan/extension-installer": "^1.0", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", "phpstan/phpstan-deprecation-rules": "^2.0", "phpstan/phpstan-phpunit": "^2.0" }, diff --git a/resources/views/replies.blade.php b/resources/views/replies.blade.php index 1b0fffb..e7d3e06 100644 --- a/resources/views/replies.blade.php +++ b/resources/views/replies.blade.php @@ -19,10 +19,10 @@ class="flex flex-col text-xs max-w-xs m-2 mx-3 @if($isOwner) order-1 @else order {{ $comment->created_at->diffForHumans() }} diff --git a/src/Livewire/Comments.php b/src/Livewire/Comments.php index 43e7774..06764ab 100644 --- a/src/Livewire/Comments.php +++ b/src/Livewire/Comments.php @@ -5,7 +5,7 @@ use Filament\Forms\Components\MarkdownEditor; use Filament\Forms\Concerns\InteractsWithForms; use Filament\Forms\Contracts\HasForms; -use Filament\Forms\Form; +use Filament\Schemas\Schema; use Illuminate\Contracts\Foundation\Application as ApplicationAlias; use Illuminate\Contracts\View\Factory; use Illuminate\Contracts\View\View; @@ -29,7 +29,7 @@ public function mount(): void $this->form->fill(); } - public function form(Form $form): Form + public static function form(Schema $form): Schema { return $form ->statePath('data')