chadmin@chcattr:~/backend/backend-application$ composer install && php-8.2 artisan cattr:install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package fruitcake/laravel-cors is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
PHP Fatal error: Declaration of Flugg\Responder\Transformers\Concerns\OverridesFractal::getAvailableIncludes() must be compatible with League\Fractal\TransformerAbstract::getAvailableIncludes(): array in /home/chadmin/backend/backend-application/vendor/flugger/laravel-responder/src/Transformers/Concerns/OverridesFractal.php on line 22
https://docs.cattr.app/?_gl=1*1mdoofx*_ga*MTc4OTk1MjI1LjE2NzcwMDM5ODY.*_ga_6WX6QRE7N9*MTY3ODExMzcxMy4xMC4wLjE2NzgxMTM3MTMuNjAuMC4w#/en/advanced/?id=requirements
第 3 步是我收到这些问题的地方。我对 php 一无所知,所以任何帮助将不胜感激。
安装其他 php 版本并以 root 身份运行
错误命令“cattr:install”未定义。您指的是其中之一吗?