Add more precise type info for ResponseInterface::getInfo
还没有人认领这个 Issue。
评估
调研方向
Read ResponseInterface::getInfo and the documented known info keys at the linked Symfony source, then locate how phpstan-symfony provides type information for this method. Done means known keys receive their documented precise types while unknown keys remain mixed; add or update coverage for the return-type behavior.
由索引模型根据 Issue 内容生成。
描述
\Symfony\Contracts\HttpClient\ResponseInterface::getInfo defines the return type as mixed in phpdoc. However, when the value of the argument is known, we could have more precise info thanks to the type defined for a bunch of known info keys (if the key is unknown in the interface contract, the type will indeed be mixed): https://github.com/symfony/symfony/blob/22a2729f371eb4bc8b08330a872291b9712e93da/src/Symfony/Contracts/HttpClient/ResponseInterface.php#L81-L109
- 主要语言
- PHP
- 星标
- 806
- 派生
- 107
- 平均合并
- 1 小时 55 分钟
- 30 天内合并 PR
- 6
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
phpstan/phpstan-symfony 的其他 Issue
-
`ParameterBag::keys()` stub not applied for Symfony ≥ 7.4 → false-positive `is_string()` `alwaysNarrowedType`可能已有人在做 @ChrisAbner 于 5 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
phpstan/phpstan-symfony#510 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
phpstan/phpstan-symfony#494 · 5 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
phpstan/phpstan-symfony#268 ·
-
Account for `\ErrorException` from `unserialize()` when Symfony’s PHP error conversion is enabled未关闭
难度 3/5 1-2 天 新手友好度 45/100
phpstan/phpstan-symfony#514 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
phpstan/phpstan-symfony#509 · 2 条评论 ·
查看 phpstan/phpstan-symfony 的全部 Issue
相似的 Issue
-
sync-en
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
JSON:API resource collections fail for resources that wrap a non-model object可能已有人在做 @lazerg 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
Recognise PHP_CodeSniffer (`phpcs`) as a linter可能已有人在做 @HarshRajSinghania 今天认领。 未关闭enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
MustacheCase/zanadir#507 ·
维护者通常 1 天内回复
-
Developer Tooling/Infrastructure type: infrastructure
难度 2/5 1-3 小时 新手友好度 62/100
woocommerce/woocommerce#70544 ·
维护者通常 1 天内回复