When trying to setup dynamic validation for my component, I used a closure inside the rules function, but when I try to access the page with my component, I get the following error: array_merge(): Argument #2 must be of type array, Closure given.
Steps To Reproduce
Create a livewire volt component
Create a validation with a closure like, rules(fn () => [ 'name' => ['required'] ]);
Volt Version
1.4
Laravel Version
10.31.0
PHP Version
8.2
Database Driver & Version
mariadb 10.4.31
Description
When trying to setup dynamic validation for my component, I used a closure inside the rules function, but when I try to access the page with my component, I get the following error: array_merge(): Argument #2 must be of type array, Closure given.
Steps To Reproduce