Updating to the latest version causes woops something went wrong

As stated after upgrading to the latest version using the script invoiceninja recomends in the wiki causes woops something went wrong error in the browser. I have used that script for 2 years now without any problems. I have tested it on 2 systems and produces the same result.
On storage laravel_error.logs there are these errors writen

[2021-02-20 01:12:22] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /var/www/html/ninja/vendor/symfony/translation/Translator.php [Line 91] => Parse error: syntax error, unexpected ‘?’, expecting va$
[2021-02-20 01:12:29] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /var/www/html/ninja/vendor/symfony/translation/Translator.php [Line 91] => Parse error: syntax error, unexpected ‘?’, expecting va$
[2021-02-20 01:13:14] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /var/www/html/ninja/vendor/symfony/translation/Translator.php [Line 91] => Parse error: syntax error, unexpected ‘?’, expecting va$
[2021-02-20 01:15:11] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /var/www/html/ninja/vendor/symfony/translation/Translator.php [Line 91] => Parse error: syntax error, unexpected ‘?’, expecting va$
[2021-02-20 01:18:20] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /var/www/html/ninja/vendor/symfony/translation/Translator.php [Line 91] => Parse error: syntax error, unexpected ‘?’, expecting va$
[2021-02-20 01:18:25] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /var/www/html/ninja/vendor/symfony/translation/Translator.php [Line 91] => Parse error: syntax error, unexpected ‘?’, expecting va$
[2021-02-20 01:20:47] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /var/www/html/ninja/vendor/symfony/translation/Translator.php [Line 91] => Parse error: syntax error, unexpected ‘?’, expecting va$
[2021-02-20 01:20:59] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /var/www/html/ninja/vendor/symfony/translation/Translator.php [Line 91] => Parse error: syntax error, unexpected ‘?’, expecting va$

and these are the errors with debug enabled:

(1/1) FatalThrowableError

Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE)
in Translator.php line 91
at Composer\Autoload\includeFile(’/var/www/html/ninja/vendor/composer/…/symfony/translation/Translator.php’)in ClassLoader.php line 322
at ClassLoader->loadClass(‘Symfony\Component\Translation\Translator’)
at spl_autoload_call(‘Symfony\Component\Translation\Translator’)in Translator.php line 7
at include(’/var/www/html/ninja/vendor/nesbot/carbon/src/Carbon/Translator.php’)in ClassLoader.php line 444
at Composer\Autoload\includeFile(’/var/www/html/ninja/vendor/composer/…/nesbot/carbon/src/Carbon/Translator.php’)in ClassLoader.php line 322
at ClassLoader->loadClass(‘Carbon\Translator’)
at spl_autoload_call(‘Carbon\Translator’)in Carbon.php line 1632
at Carbon::translator()in Carbon.php line 1679
at Carbon::setLocale(‘en’)in ServiceProvider.php line 29
at ServiceProvider->updateLocale()in ServiceProvider.php line 21
at ServiceProvider->boot()
at call_user_func_array( array ( object (ServiceProvider), ‘boot’), array ())in BoundMethod.php line 29
at BoundMethod::Illuminate\Container{closure}()in BoundMethod.php line 87
at BoundMethod::callBoundMethod( object (Application), array ( object (ServiceProvider), ‘boot’), object (Closure))in BoundMethod.php line 31
at BoundMethod::call( object (Application), array ( object (ServiceProvider), ‘boot’), array (), null )in Container.php line 549
at Container->call( array ( object (ServiceProvider), ‘boot’))in Application.php line 792
at Application->bootProvider( object (ServiceProvider))in Application.php line 775
at Application->Illuminate\Foundation{closure}( object (ServiceProvider), 20)
at array_walk( array ( object (EventServiceProvider), object (LogServiceProvider), object (RoutingServiceProvider), object (AuthServiceProvider), object (CookieServiceProvider), object (DatabaseServiceProvider), object (EncryptionServiceProvider), object (FilesystemServiceProvider), object (FormRequestServiceProvider), object (FoundationServiceProvider), object (PaginationServiceProvider), object (SessionServiceProvider), object (ViewServiceProvider), object (NotificationServiceProvider), object (ServiceProvider), object (ServiceProvider), object (UpdaterServiceProvider), object (ImageServiceProvider), object (LaravelCrawlerDetectServiceProvider), object (ExcelServiceProvider), object (ServiceProvider), object (ConsoleServiceProvider), object (ContractsServiceProvider), object (LaravelModulesServiceProvider), object (CountriesServiceProvider), object (BootstrapperL5ServiceProvider), object (SwaggervelServiceProvider), object (CloudStorageServiceProvider), object (DatatableServiceProvider), object (AuthServiceProvider), object (AppServiceProvider), object (ComposerServiceProvider), object (ConfigServiceProvider), object (EventServiceProvider), object (RouteServiceProvider), object (LaravelPushNotificationServiceProvider), object (MailServiceProvider), object (QueueServiceProvider), object (TranslationServiceProvider), object (HashServiceProvider)), object (Closure))in Application.php line 776
at Application->boot()in BootProviders.php line 17
at BootProviders->bootstrap( object (Application))in Application.php line 213
at Application->bootstrapWith( array (‘Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables’, ‘Illuminate\Foundation\Bootstrap\LoadConfiguration’, ‘Illuminate\Foundation\Bootstrap\HandleExceptions’, ‘Illuminate\Foundation\Bootstrap\RegisterFacades’, ‘Illuminate\Foundation\Bootstrap\RegisterProviders’, ‘Illuminate\Foundation\Bootstrap\BootProviders’))in Kernel.php line 162
at Kernel->bootstrap()in Kernel.php line 146
at Kernel->sendRequestThroughRouter( object (Request))in Kernel.php line 116
at Kernel->handle( object (Request))in index.php line 51

Hi,

Please check you’re using PHP 7.1 or 7.2

yes the intitial update was done with php version 7 and then i changed to 7.2 still did not work so i nuked the entire setup kept the db and starting over fresh now.