swooletw / laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.
MIT License
4.04k stars 390 forks source link

Fix deprecated null potentially being passed to strpos() #523

Closed amcsi closed 1 year ago

amcsi commented 2 years ago

Fixes this notice coming from PHP 8.1:

strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vendor/swooletw/laravel-swoole/src/Transformers/Request.php on line 95
brainiac84 commented 1 year ago

@Arkanius please take a look when you can on that tiny change, it blocks an upgrade to php8.1