Error feedback: tell the developer they've forgotten to import a class
还没有人认领这个 Issue。
评估
调研方向
首先跟踪服务容器如何处理 go() 函数参数,以及如何针对所示的 _common_php 和 ContentRepository 情况格式化 ServiceNotFoundException。复现缺少 use 的场景,并使生成的反馈指出缺少类导入,同时仍覆盖现有的异常行为。
由索引模型根据 Issue 内容生成。
描述
It's really easy to do, but also really easy to detect:
Gt\ServiceContainer\ServiceNotFoundException - Service can not be located within Container: "Gt\AppLogic\page\_common_php\ContentRepository
This exception mentions _common_php, which is the magic PHP logic file that shouldn't exist in its own namespace, so it's obvious that in this case the developer has put ContentRepository in the go() function parameter, but has forgotten to use App\ContentReposiory at the top of the file.
- 主要语言
- PHP
- 星标
- 26
- 派生
- 6
- 平均合并
- 21 天 17 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
phpgt/WebEngine 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 5/5 一周以上 新手友好度 25/100
-
Errors: If page logic errors, components should continue to execute可能重新可做 @g105b 于 340 天前认领,目前没有进行中的 PR。 未关闭question
-
难度 5/5 一周以上 新手友好度 30/100
-
难度 3/5 1-2 天 新手友好度 45/100
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
crazy-goat/rabbit-stream#830 ·
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 4 天内回复
-
Перевод устарел
难度 2/5 1-3 小时 新手友好度 70/100
-
Combination form: image thumbnails collapse to 0×0 when a stylesheet sets `img { max-width: 100% }`未关闭
难度 2/5 1-3 小时 新手友好度 66/100
PrestaShop/PrestaShop#43200 ·
维护者通常 1 天内回复