Until there’s an update to Invoice Ninja with the latest version of Laravel, here’s an easy way to revert back to PHP 7.2 or previous (assuming you only updated, but didn’t uninstalled the previous versions).
- Run
sudo update-alternatives --config php
to list the versions of PHP available on your system. Select the option for 7.2 (or whichever previous version you have installed). - Do the same for your PHP extensions with
sudo update-alternatives --config phar
. - Restart your webserver (
sudo systemctl restart apache2
,sudo systemctl restart nginx && sudo sytemctl restart php-fpm
, etc.)
This will change the PHP system-wide.
That should take care of the issue until there’s an update. The usual “your mileage may vary”, “this might be slightly different on your system”, and “I take no responsibility for what happens” disclaimers apply here.