Error feedback: tell the developer they've forgotten to import a class
まだ誰も着手していません。
評価
調査の方向性
まず、サービスコンテナが 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
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phpgt/WebEngine のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
-
Docs: missing pieces オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
question
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
phpgt/WebEngine の issue をすべて見る
似ている issue
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/safe-publish#594 ·
-
needs-triage Platform(Default)
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
HttpClient
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
symfony/symfony-docs#23092 ·
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 95/100