outl1ne / nova-simple-repeatable

A Laravel Nova simple repeatable rows field.
MIT License
73 stars 44 forks source link

Psalm InvalidArgument error #43

Closed StApostol closed 1 year ago

StApostol commented 1 year ago

In nova abstract field exists annotation

/**
* @method static static make(mixed $name, string|\Closure|callable|object|null $attribute = null, callable|null $resolveCallback = null)
*/

I get error "Argument 3 of Outl1ne\NovaSimpleRepeatable\SimpleRepeatable::make expects callable|null" for next code

SimpleRepeatable::make('Images', 'images', [
    URL::make('Url'),
]),
marttinnotta commented 1 year ago

Hi!

Updated annotation accordingly, fix will be released with next version.

Thank you and good luck!