IconPicker won't work

Can i overwrite the required parameters of options function ? If i overwrite this on vendor file :
public function options(array|Closure|string|Arrayable $options): static
{
throw new \BadMethodCallException('Method not allowed.');
}
public function options(array|Closure|string|Arrayable $options): static
{
throw new \BadMethodCallException('Method not allowed.');
}
to this
public function options(array | Arrayable | string | Closure | null $options): static
{
throw new \BadMethodCallException('Method not allowed.');
}
public function options(array | Arrayable | string | Closure | null $options): static
{
throw new \BadMethodCallException('Method not allowed.');
}
its working I can't update filament to install the latest version of this package cause are too many dependencies to fix and now i dont have too much time to fix that. So can someone help me to overwrite somehow if is posible ?!
No description
2 Replies
Dennis Koch
Dennis Koch9mo ago
Why would ->options() require null as a type?
Szilárd
SzilárdOP9mo ago
I really dont know the answer but its still work
Want results from more Discord servers?
Add your server