wire-elements / wire-extender

Wire Extender allows you to embed any Livewire component on any website or even within a static HTML file.
https://wire-elements.dev/blog/embed-livewire-components-using-wire-extender
MIT License
208 stars 6 forks source link

If no parameters passed return empty array rather than null #9

Closed dircm closed 2 months ago

dircm commented 2 months ago

fixes #8

If no parameters are passed when using Livewire then a null parameter is passed to Livewire\Features\SupportNestingComponents throwing a type error.

This PR checks $componentParams and returns an empty array if null.

PhiloNL commented 2 months ago

Thanks!