Problem 1
- symfony/http-foundation is locked to version v7.2.5 and an update of this package was not requested.
- symfony/http-foundation v7.2.5 requires php >=8.2 -> your php version (8.0.2) does not satisfy that requirement.
Problem 2
- symfony/deprecation-contracts v3.5.1 requires php >=8.1 -> your php version (8.0.2) does not satisfy that requirement.
- guzzlehttp/guzzle 7.9.2 requires symfony/deprecation-contracts ^2.2 || ^3.0 -> satisfiable by symfony/deprecation-contracts[v3.5.1].
- guzzlehttp/guzzle is locked to version 7.9.2 and an update of this package was not requested.
切换环境 到php8.0 它会执行报错,又引起了其他版本包报错
如果是 composer 要求 8.2,是因为你使用 8.2 的环境执行过
composer update
,和海报生成模块无关Problem 1
- symfony/http-foundation is locked to version v7.2.5 and an update of this package was not requested.
- symfony/http-foundation v7.2.5 requires php >=8.2 -> your php version (8.0.2) does not satisfy that requirement.
Problem 2
- symfony/deprecation-contracts v3.5.1 requires php >=8.1 -> your php version (8.0.2) does not satisfy that requirement.
- guzzlehttp/guzzle 7.9.2 requires symfony/deprecation-contracts ^2.2 || ^3.0 -> satisfiable by symfony/deprecation-contracts[v3.5.1].
- guzzlehttp/guzzle is locked to version 7.9.2 and an update of this package was not requested.
切换环境 到php8.0 它会执行报错,又引起了其他版本包报错
依赖不兼容,只能想办法手动解决这些兼容性问题,建议检查下 composer.lock 和 composer.json。
框架默认锁定的
symfony/http-foundation
依赖版本是安装后会生成 \vendor\composer\44acea5f\kkokk-poster-6fa26bb\tests\server\index.php
判断为病毒文件。
病毒名称:HEUR:Backdoor/PHP.WebShell.g
病毒ID:3DB13BDBDFD7578A
检查文件内容二次确认即可,十有八九是误报
在composer.json中修改 "symfony/http-foundation": "5.4|6.4", // 兼容 PHP ≥8.0即可 7.1版本需要Php8.2。同时执行# 清理缓存并重新安装
composer clear-cache
7.1并不要求8.2,是你的7.2.5
- 1
前往