Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature of $width/width()/getWidth() has changed #19

Closed
renderse7en opened this issue Jun 23, 2024 · 1 comment
Closed

Signature of $width/width()/getWidth() has changed #19

renderse7en opened this issue Jun 23, 2024 · 1 comment

Comments

@renderse7en
Copy link

Laravel 11.10
Filament v3.2.91
filament-rating-field v0.4.0

I added a simple RatingColumn::make('difficulty') to a table and receive the following error when attempting to load that resource's index page:

Type of Yepsua\Filament\Tables\Components\RatingColumn::$width must be Closure|string|int|null (as in class Filament\Tables\Columns\Column)

I was able to make it work by going down into Yepsua\Filament\Tables\Components\RatingColumn.php class and fixing the $width property and the width() and getWidth() methods to match the signatures in Filament\Tables\Columns\Concerns\HasWidth.php.

@abdosaeedelhassan
Copy link

Hi @renderse7en,
can you describe what changes you make to git it work, can do it with closure so no need to change package code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants