-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Bug]: getCustomSchema will make problem for all of fields #316
Comments
dirty solution :
standard solution :
|
this looks similar to #294. you can run |
yes it's latest and output:
|
I cant reproduce the issue, the demo is working fine :) I test it with/without Bolt pro try update bolt pro: and as I explained about the I need the 3 dots here: coz the I dont need the dots here: coz the |
i think the problem is coming from Facede / Bolt file:
it returns null for me |
tested on new app and 'zeus` starter kit and the demo app feel free to reopen with a reproduction repository. |
What happened?
Filament\Forms\ComponentContainer::Filament\Forms\Concerns{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, array given {"userId":4,"exception":"[object] (TypeError(code: 0): Filament\Forms\ComponentContainer::Filament\Forms\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, null given at /home/yallaxom/public_html/vendor/filament/forms/src/Concerns/HasComponents.php:122)
How to reproduce the bug
in most of the fields this line makss problem in codes:
Bolt::getCustomSchema('field', resolve(static::class)) ?? []
example in FileUpload.php (vendor\lara-zeus\bolt\src\Fields\Classes\FileUpload.php)
error :
Filament\Forms\ComponentContainer::Filament\Forms\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, null given {"userId":4,"exception":"[object] (TypeError(code: 0): Filament\\Forms\\ComponentContainer::Filament\\Forms\\Concerns\\{closure}(): Argument #1 ($component) must be of type Filament\\Forms\\Components\\Component, null given at /home/yallaxom/public_html/vendor/filament/forms/src/Concerns/HasComponents.php:122)
when you remove the line the problem will be solved
Package Version
3.0.59
PHP Version
8.2.*
Laravel Version
11
Which operating systems does with happen with?
No response
Notes
No response
The text was updated successfully, but these errors were encountered: