Hello,
I am trying to (finally) migrate to v5 having used v4 for a while. I have a reasonably fresh 22.04 VM, I am downloading the latest zip file from the GitHub releases and when accessing the site (with nginx and php-fpm 8.1) or running php8.1 artisan optimize
I get the following errror:
# php8.1 artisan optimize
PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/sites/invoiceninja5/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1277
Stack trace:
#0 /srv/www/sites/invoiceninja5/vendor/laravel/framework/src/Illuminate/Support/Collection.php(11): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /srv/www/sites/invoiceninja5/vendor/composer/ClassLoader.php(444): include('...')
#2 /srv/www/sites/invoiceninja5/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile()
#3 /srv/www/sites/invoiceninja5/vendor/laravel/framework/src/Illuminate/Support/helpers.php(109): Composer\Autoload\ClassLoader->loadClass()
#4 /srv/www/sites/invoiceninja5/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(89): collect()
#5 /srv/www/sites/invoiceninja5/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config()
#6 /srv/www/sites/invoiceninja5/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#7 /srv/www/sites/invoiceninja5/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(219): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap()
#8 /srv/www/sites/invoiceninja5/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(320): Illuminate\Foundation\Application->bootstrapWith()
#9 /srv/www/sites/invoiceninja5/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\Foundation\Console\Kernel->bootstrap()
#10 /srv/www/sites/invoiceninja5/artisan(35): Illuminate\Foundation\Console\Kernel->handle()
#11 {main} in /srv/www/sites/invoiceninja5/vendor/laravel/framework/src/Illuminate/Support/Collection.php on line 11
What am I missing?
Thanks!