Codeception / Codeception/AspectMock
Does not install with Composer w/o warnings/errors (PHP 8)
- 主要语言
- PHP
- 星标
- 784
- 派生
- 132
- PR 合并指标
- 30 天内没有已合并 PR
描述
AspectMock 4.1.1 won't install cleanly under PHP 8 with Composer:
```
$ composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires codeception/aspect-mock 4.1.1 -> satisfiable by codeception/aspect-mock[4.1.1].
- codeception/aspect-mock 4.1.1 requires php ^7.4 -> your php version (8.1.2) does not satisfy that requirement.
```
The only way I can get it to install without errors is to use Composer's `--ignore-platform-reqs` option.
Although there are problems with `goaop/parser-reflection` under PHP 8 (see https://github.com/goaop/framework/issues/466), I believe AM itself will work without issue under the newer PHP versions (other than the problem I reported in #201).
I believe changing this `composer.json` line would be sufficient:
```
- "php": "^7.4",
+ "php": ">=7.4",
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
按照 issue 中的描述更新 composer.json 中的 PHP 要求。在 PHP 8.1.2 下运行 composer update,不使用 --ignore-platform-reqs,并验证 AspectMock 是否能够在没有依赖项错误或警告的情况下安装。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- php
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 35/100