laravel / jetstream

Tailwind scaffolding for the Laravel framework.
https://jetstream.laravel.com
MIT License
3.93k stars 809 forks source link

Fix incorrect annotations in Livewire components using "@return void" #1467

Closed coreymcmahon closed 3 months ago

coreymcmahon commented 3 months ago

Hi!

This is a tiny update to correct some of the type annotations which are currently @return void when a return type is possible.

This obviously shouldn't impact any runtime behaviour, but it's causing PHPStan errors in one of my projects so it would be appreciated if we could correct the type annotations 🙂

I tried to follow the return type conventions used in other places, but please feel free to suggest superior alternatives if you believe they exist.

Thanks for all you do 🙏