laravel / reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.
https://reverb.laravel.com
MIT License
942 stars 63 forks source link

Cast content length to string when setting headers in HTTP Response.php #181

Closed Fludem closed 2 months ago

Fludem commented 2 months ago

The header function inside the JsonResponse class expects array|null|string and previously we were passing an integer.

I see little reason in not sticking to the variable types defined in the json response's set function.

Pedantic change but strict types can now be used