phpDocumentor / phpDocumentor/ReflectionDocBlock

FQSEN resolution fails on anonymous classes

オープン
#180 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
PHP
スター
9.4k
フォーク
137
平均マージ
4日 2時間
マージ済み PR(30日)
1

説明

When an anonymous class is given to a context, it is unable to resolve the classes of properties in the docblock, even if they are imported.

By removing the error on the given line (phpDocumentor/ReflectionCommon#21), I was able to get it to function; however it was still not resolving the namespace of the property.

Code sample:
https://gist.github.com/iggyvolz/5061fe63090588d0f4f96874380b5ef3

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンクされた gist の匿名クラスの例から始め、phpDocumentor/ReflectionCommon#21 の失敗を追跡してください。ケースを再現し、その後、インポートされたプロパティ型が対応する namespace に解決されることを、報告されたエラーを削除せずに確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。