Enabling TRUSTED_PROXIES setting breaks 4.5.46

After updating to 4.5.46 (in order to migrate to v5) my installation is broken because it fails if the TRUSTES_PROXIES setting is in the .env file.

Got the following error in the log:

 production.ERROR: [stacktrace] 2021-12-12 10:40:00 Too few arguments to function Symfony\Component\HttpFoundation\Request::setTrustedProxies(), 1 passed in /var/www/html/invoices/app/Http/Middleware/StartupCheck.php on line 43 and exactly 2 expected

the latest code in the master branch has a fix for this, we’ll tag a new release cc @hillel

Awesome, thank you for that!