Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

value of 'wp-parser-namespace_children' option incorrect after parsing source with hierarchical nmespaces

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
php
領域
documentation

調査の方向性

パーサーがパース後に wp-parser-package_children オプションと wp-parser-since_children オプションをすでに削除している WP_Parser\Importer::import() から始めます。階層的な namespace 用語によって wp-parser-namespace_children が古い状態のままになることを確認し、同じ箇所で無効化されるようにします。パース後にすべての namespace レベルが WP_Terms_List_Table に表示されることを確認します。

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

説明

When parsing code that contains hierarchical namespaces, e.g.,

namespace My\Hierarchical\Namespace;

class MyClass {
...
}

terms are created for each step in the hierarchy (My, Hierarchical and Namespace in the example above), but since cache invalidation is suspended during a parse, the wp-parser-namespace_children option is never updated.

This results in, among other things, only the top-level namespace term showing in the WP_Terms_List_Table in the backend

hierarchical-namespace-terms

WP_Parser\Importer::import() correctly deletes wp-parser-package_children and wp-parser-since_children at the end of the parse (which will result in them being rebuilt at the appropriate time), but it seems that wp-parser-namespace_children was forgotten.

PR coming shortly.

主要言語
PHP
スター
239
フォーク
81
平均マージ
16時間 29分
マージ済み PR(30日)
8

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

WordPress/phpdoc-parser のほかの issue

WordPress/phpdoc-parser の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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