cachethq / cachet

🚦 The open-source status page system.
https://cachethq.io
MIT License
13.79k stars 1.55k forks source link

ReflectionParameter deprecated #4320

Closed nobicycle closed 10 months ago

nobicycle commented 2 years ago

During composer install:

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/http/cachet/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1911
Stack trace:
#0 /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Support/Collection.php(42): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /srv/http/cachet/vendor/composer/ClassLoader.php(571): include('...')
#2 /srv/http/cachet/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile()
#3 /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Support/helpers.php(422): Composer\Autoload\ClassLoader->loadClass()
#4 /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(123): collect()
#5 /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(97): Illuminate\Foundation\PackageManifest->build()
#6 /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(80): Illuminate\Foundation\PackageManifest->getManifest()
#7 /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#8 /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(211): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap()
#9 /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(297): Illuminate\Foundation\Application->bootstrapWith()
#10 /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(120): Illuminate\Foundation\Console\Kernel->bootstrap()
#11 /srv/http/cachet/artisan(35): Illuminate\Foundation\Console\Kernel->handle()
#12 {main} in /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Support/Collection.php on line 42
PHP Fatal error:  Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated in /srv/http/cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php:838
Stack trace:

PHP 8.1.3 (cli) (built: Feb 16 2022 13:27:56) (NTS)

Regards

welcome[bot] commented 2 years ago

:wave: Thank you for opening your first issue. I'm just an automated bot that's here to help you get the information you need quicker, so please ignore this message if it doesn't apply to your issue. If you're looking for support, you should try the Slack group by registering your email address at https://cachethq-slack.herokuapp.com. Alternatively, email support@alt-three.com for our Professional support service (please note, this a paid service.) If you're issue is with documentation, you can suggest edits by clicking the Suggest Edits link on any page, or open an issue at https://github.com/CachetHQ/Docs

jbrooksuk commented 10 months ago

Cachet 2.x isn't compatible with 8.1