support for class-string-map<T of Foo>
まだ誰も着手していません。
評価
調査の方向性
Start by reviewing issue #246, PHPStan issue #9521, and the linked phpDocumentor TypeResolver issue to understand the proposed class-string-map syntax. Then examine how GenericType represents bounds and how the parser handles this syntax; done means an agreed representation and parser support that avoids a crash.
索引モデルが issue の本文から書いたものです。
説明
I was investigating the option to add support for class-string-map<T of Foo> and found #246, and also https://github.com/phpstan/phpstan/issues/9521. According to @ondrejmirtes in #246 this syntax should already be supported by this library. But is it not.
I'm wondering if we should introduce the syntax, and how this would look like. I can help with the implementation in the parser. But not without an agreement on how this would work on the GenericType.
I would suggest to add a $bound type on the GenericType which is equal to the behavior on @template
This is needed to the mentioned change in phpstan and https://github.com/phpDocumentor/TypeResolver/issues/266. Support in the parser would at least prevent a crash in the parser.
Thanks for this library! 🎉
- 主要言語
- PHP
- スター
- 1.5k
- フォーク
- 78
- 平均マージ
- 9時間 5分
- マージ済み PR(30日)
- 5
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phpstan/phpdoc-parser のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
phpstan/phpdoc-parser#317 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
phpstan/phpdoc-parser#271 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
phpstan/phpdoc-parser#219 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
phpstan/phpdoc-parser#178 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
phpstan/phpdoc-parser#173 · コメント 1 件 ·
phpstan/phpdoc-parser の issue をすべて見る
似ている issue
-
a11y admissions.uiowa.edu needs grooming SiteImprove best practice
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Save States Menu オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
pluginsGLPI/datainjection#673 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
octobercms/october#6130 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
getgrav/grav-plugin-form#656 ·