awcodes / filament-badgeable-column

A custom table column that supports prefixed and suffixed badges to the column content.
MIT License
125 stars 18 forks source link

Declaration of Awcodes\FilamentBadgeableColumn\Concerns\HasBadges::getPrefix(): Illuminate\Contracts\Support\Htmlable|string|null must be compatible with Filament\Tables\Columns\TextColumn::getPrefix(): ?string #51

Closed mmuqiitf closed 1 month ago

mmuqiitf commented 1 month ago

Filament Version

v3

Plugin Version

v2.3.2

PHP Version

8.3.12

Problem description

Declaration of Awcodes\FilamentBadgeableColumn\Concerns\HasBadges::getPrefix(): Illuminate\Contracts\Support\Htmlable|string|null must be compatible with Filament\Tables\Columns\TextColumn::getPrefix(): ?string

It looks like the getPrefix declaration is not the same as the one in Filament

Expected behavior

What I expect when I update the filamentphp v3 and awcodes/filament-badgeable-column v2.3.2 packages is that the badge will still appear.

Steps to reproduce

I upgraded filamentphp to v3 and awcodes/filament-badgeable-column to v2.3.2 but the following error appeared: Declaration of Awcodes\FilamentBadgeableColumn\Concerns\HasBadges::getPrefix(): Illuminate\Contracts\Support\Htmlable|string|null must be compatible with Filament\Tables\Columns\TextColumn::getPrefix(): ?string

Reproduction repository

No response

Relevant log output

No response

mmuqiitf commented 1 month ago

Sorry wrong filamentphp version, because i have v3.1 so i upgrade it into v3.2 and it works!